Skip to content

Custom login sample fails authentication with current instructions #133

@r-tae

Description

@r-tae

Followed README, testing on my employer's dev Okta tenant. Using a custom domain name as the issuer, so it is different from the *-admin.oktapreview.com developer portal url.

Tested on Firefox. Steps taken:

  1. Run npm install in both custom-login and okta-hosted-login
  2. Create new SPA application as per documentation (no option given to provide a base URL, so the documentation is out of date)
  3. Assign "Everyone" to application on developer portal
  4. Create testenv file with issuer and client ID found on developer portal
  5. Run npm start in custom-login project
  6. Attempt sign in and observe POST request to {oktaBaseUrl}/api/v1/authn that returns HTTP 401
  7. Shut down custom-login and run npm start in okta-hosted-login
  8. Attempt sign in to and observe GET request to {oktaBaseUrl}/oauth2/default/api/v1/authorize that returns HTTP 200
  9. With a successful sign in, shut down okta-hosted-login and restart custom-login
  10. Observe login form bypassed, due to valid cookie, and a successful authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions