simple oauth2 implementation with okta
- sign up for okta oauth2 provider
- create application in okta
- copy client_id and secret_id
- add user to application
- implement auth flow code
- user visits index and is routed to /auth
- /auth collects application details, and redirects user to oauth provider
- user logs in to oauth provider
- user is redirected to callback
- callback validates the user's code and state
- application redirects to /profile
- /profile sends request to okta../userinfo on behalf of the user
- user's profile info is displayed.