Forum Discussion
richie
5 years agoCommunity Hero
Hey tsjakamaka,
What youre asking is possible but it's a lot of work.
I had to setup an OAuth v2.0 process just using individual REST requests (rather than using the OAuth v2.0 setup functionality) and it was difficult.
If you want to set it up in either groovy or REST requests (which is easier) you'll need to identify all the individual requests that are exercised during the OAuth v2.0 process. Without this info people arent going to be able to help.
There are going to be at least 5 individual requests (i actually had 12) that youll need to identify before you can start trying to set this up.
Cheers,
Rich
What youre asking is possible but it's a lot of work.
I had to setup an OAuth v2.0 process just using individual REST requests (rather than using the OAuth v2.0 setup functionality) and it was difficult.
If you want to set it up in either groovy or REST requests (which is easier) you'll need to identify all the individual requests that are exercised during the OAuth v2.0 process. Without this info people arent going to be able to help.
There are going to be at least 5 individual requests (i actually had 12) that youll need to identify before you can start trying to set this up.
Cheers,
Rich
- tsjakamaka5 years agoOccasional Contributor
Hi richie ,
Why is it so difficult?
I would expect that it should work if I use following code:
oAuthProfile.setClientID("client id")
oAuthProfile.setClientSecret("client secret")
oAuthProfile.setScope("scope")
oAuthProfile.setAuthorizationURI("authorization URL" )
oAuthProfile.setAccessTokenURI("AccessToken URL" )
oAuthProfile.setRedirectURI("Redirect URL" )
def oAuthClientFacade = new OltuOAuth2ClientFacade(TokenType.ACCESS);
oAuthClientFacade.requestAccessToken(oAuthProfile, true);But I don't know how I can create the "oAuthProfile"-object. (and off course I need to update the parameters. (same as entered in authorization screen)
Related Content
- 2 years ago
- 3 years ago
- 12 years ago
- 7 years ago
Recent Discussions
- 15 years ago