Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login to application dashboard #1431

Open
rinsarmu opened this issue Jul 8, 2023 · 6 comments
Open

Login to application dashboard #1431

rinsarmu opened this issue Jul 8, 2023 · 6 comments
Labels

Comments

@rinsarmu
Copy link

rinsarmu commented Jul 8, 2023

Describe the bug

here is my question.

  1. when user logged into okta using company domain, he can see assigned application to him(if he is authenticated).
    the when user click on assigned application, the browser redirect user to provided redirect uri.(in my case http://127.0.0.1:5500/index.html).

[
in any way user cannot access this url http://127.0.0.1:5500/index.html if he is not authenticated first]

  1. after user redirected to http://127.0.0.1:5500/index.html this there is external js which sends http Get (http:127.0.0.1:8000/home) request to server. that routes is protected by okta. (http:127.0.0.1:8000). if user is not authorized it should retrun unauthorized message. if not user can access that route.

can any one help me to check whether user is authenticated in this workflow. how my code check whether user has accesstoken to make request?

Reproduction Steps?

No reproduction steps

SDK Versions

7.0.0

Additional Information?

No response

@rinsarmu rinsarmu added the bug label Jul 8, 2023
@denysoblohin-okta
Copy link
Contributor

There is async method oktaAuth.isAuthenticated() in the AuthJs SDK that checks for idToken and accessToken

@rinsarmu
Copy link
Author

i got this error.
OAuthError: Browser requests to the token endpoint must use Proof Key for Code Exchange. when i put below code in my app.js. please can we huddle on slack? i am bit trouble with this. thank you
okta

@denysoblohin-okta
Copy link
Contributor

Please post your config. Did you set pkce: false?
See the description of the error you get.
Did you create SPA app or Web app in Okta Admin Dashboard?

@rinsarmu
Copy link
Author

rinsarmu commented Jul 11, 2023

no, i said pkce:true. I created Web app . can u please join me on slack, i am too trouble with configuration. thank you

@denysoblohin-okta
Copy link
Contributor

Please reach out to support@okta.com for help with configuration.

@rinsarmu
Copy link
Author

I have send help request to support@okta.com. until that can u give me 5 minutes join me in google meet? please join me at https://meet.google.com/smr-fhtj-rfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants