Hi
I’m developing a spring boot application and trying to use okta-spring-boot library.
I haven’t set up any frontend part yet but want to verify that authentication is set up correctly.
The token that I can generate through console is not jwt format and I can’t seem to find how to generate jwt one.
The question is if what I’m trying to do is a valid scenario and if yes, how can I get test jwt token?
The idea is to be able to handle requests both coming from frontend and backend. (I assume there should be a way for a backend service to obtain jwt token and use it when sending requests to my service?)
Thanks in advance for helping.
Your scenario makes sense!
The Token Preview tab available on the Authorization Server lets you preview the contents of the token, but doesn’t actually give you the token itself. I think this could be a good feature request (I’ll suggest it).
I built a tool that might help: OpenID Connect Debugger. It’s not an official Okta tool (just a side project of mine) but it makes it easy to get a token (the same way a frontend would, using the implicit flow), and then you can copy that token and use it to test your backend.
Does that help in your use case?
Thank you.
I’m getting 404 on the tool you provided.
I set up the application the way it’s described in documentation (SAP application).
Authorize URI: https://dev-****.oktapreview.com/oauth2/default
Redirect URI: https://oidcdebugger.com/debug
Client ID: copied from the app Client Credentials
Scope: openid (default)
State: left empty
Nonce: left default
Response type: token
Response mode: tried every option, still 404 every time.
Am I doing something wrong?
One tiny correction: the authorize URI should end in /authorize
, like:
https://***.oktapreview.com/oauth2/default/v1/authorize
I need to make this more clear in my tool, I’ve messed it up too many times too
I see, I thought this was the value I put in issuer
property.
I added redirect uri into app configuration and now getting The authentication request has an invalid 'state' parameter
. I left it empty and not sure which value to put there. Can’t see where this should be configured in the Applications console
State doesn’t need to be defined anywhere in the Application configuration. Just put a value like foobar
in the debugger tool.
Cool, it worked! Thank you for your help
1 Like