OpenIDC/liboauth2

Sample code

FSajadi opened this issue ยท 17 comments

I want to use this library for OAuth, it would be good if there is a sample/reference/and so on.
Regards

agreed; as this is a fairly new development, I have not spent time on that yet; can you explain what you're looking to build with it? perhaps I can then guide you and provide some docs at the same time

I want to have access to all OAUTH2 based accounts (like Gmail ) by using this library.

are you writing an application in the C programming language?

Yes I'm using c/cpp in Linux.

Which grant type do you want to use?

For now the refresh_token and authorization_code

how would you handle the user-agent/browser part that is required for the authorization code grant type from your C app?

In these steps, a url should be open manually by user. The C app should inform the user for opening the url.

so far the library has not been extended for that use case; that will only be added later this year

Ok, can you please describe how you perform OAuth2 in current version/release?

there's only Resource Server functionality, no toplevel Client functionality yet

hi @zandbelt

there's only Resource Server functionality, no toplevel Client functionality yet

Is this still the case?

hi @zandbelt

there's only Resource Server functionality, no toplevel Client functionality yet

Is this still the case?

what are you looking for exactly?

hi @zandbelt

there's only Resource Server functionality, no toplevel Client functionality yet

Is this still the case?

what are you looking for exactly?

I would like to use the client auth flow, a user connects to a OIDC issuer (provides the client_id, secret), server returns a url which client opens in a browser, user grants to a scope , gets an ID token etc

then no, liboauth2 is still primarily focused on server side functionality

that is fair enough, I will have a dig around (unless you know of something out there?).