OAuth2 implementation in free5gc

Hi all,

Hi everyone,

I have been working with Free5GC and noticed that the framework uses the client credentials grant type for obtaining access tokens to access services. Typically, in this grant type, the client_id and client_secret are used to authorize client requests. However, in Free5GC, these parameters are not utilized in the client credentials grant type.

While exploring the Oauth.go code, I came across a function for generating client credentials assertions. From my understanding, this approach involves using JWT tokens for client authorization. However, I am unsure how these tokens are passed to the NRF or the authorization server during a request to acquire an access token.

Could someone please guide me through the process of token sharing in the OAuth implementation within Free5GC? Your insights would be greatly appreciated.

Thank you