Can authorization code mode be more flexible to support app login, because app login omits the authorization of authorization code mode

Comment From: jgrandja

@zhangzhen108 I don't quite understand the issue? Can you please provide more detail.

Comment From: zhangzhen108

My android app needs social login.After I get the third-party token with Oauth-Client, how can I convert it into my own JWT token to support my own resource server requests? I try to inherit SavedRequestAwareAuthenticationSuccessHandler class, rewrite onAuthenticationSuccess method,However, it was found that oauth-Client was not the authorization side, so JWT Token could not be obtained through authorization.

Comment From: zhangzhen108

I'm using the Spring Security5, OAuth2 client.This problem has puzzled me for a week. I really hope you can help me solve it. Thank you very much

Comment From: jgrandja

@zhangzhen108

After I get the third-party token with Oauth-Client, how can I convert it into my own JWT token to support my own resource server requests?

This use case is not valid. It is not the responsibility of the client to convert the obtained access token to a JWT. Only the authorization server can issue access tokens, whether opaque or JWT format.

This is a question that would be better suited to Stack Overflow. I'm going to close this as we prefer to use GitHub issues only for bugs and enhancements.