Hello,
I understand that you have a single page application in Angular that you want to protect with an external identity provider that is OIDC based.
From this source[1], “OIDC is a thin identity layer for authentication and Single Sign-On that rides on top of OAuth 2.0...OIDC is a thin layer on top of OAuth 2.0 that introduces a new type of token: the Identity Token. Encoded within these cryptographically signed tokens in JWT format, is information about the authenticated user. ”
You would like to know if this method is recommended. I have found an opinion in the same
document that goes into detail to share his opinion, which is “Why You Should Never Use the
Implicit Flow Again.” There are many use cases. There are some deciding to go this route,
others not. Although I do not have a strong opinion myself, a quick search is the best way to
start.
You’ve asked that you want to know how your application can decode a JWT Identity Token
during an IAP/GCIP authentication flow. I think this is more of a technical implementation meant for Stackoverflow[2] but if you post your logic in words, what you’ve done so far, I think you may benefit from this forum.
I hope I’ve touched on your points.
[1] https://developer.okta.com/blog/2019/08/22/okta-authjs-pkce
[2] https://stackoverflow.com/