Configure Ratpack as OAuth Resource Server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Configure Ratpack as OAuth Resource Server

bobbywarner
Does anybody have any suggestions for configuring Ratpack as an OAuth resource server?  (my Spring Security OAuth Authorization server runs in a separate JVM)  

I was thinking of maybe extending this pac4j OAuth class to build my own client class, but not sure if that is the best approach:  https://github.com/pac4j/pac4j/blob/master/pac4j-oauth/src/main/java/org/pac4j/oauth/client/BaseOAuth20Client.java

Please let me know if you have any other suggestions.


Thanks,
Bobby
Reply | Threaded
Open this post in threaded view
|

Re: Configure Ratpack as OAuth Resource Server

leleuj
Hi,

Indeed, if you need to protect your resource by an OAuth server, you can create your specific OAuth client based on the BaseOAuth20Client and use it.

You may also need to define a specific OAuth implementation (protocol level) other than the ones provided by Scribe and pac4j: https://github.com/pac4j/pac4j/tree/1.7.x/pac4j-oauth/src/main/java/org/scribe/builder/api

Best regards,
Jérôme



2015-08-19 16:27 GMT+02:00 bobbywarner [via Ratpack Forum] <[hidden email]>:
Does anybody have any suggestions for configuring Ratpack as an OAuth resource server?  (my Spring Security OAuth Authorization server runs in a separate JVM)  

I was thinking of maybe extending this pac4j OAuth class to build my own client class, but not sure if that is the best approach:  https://github.com/pac4j/pac4j/blob/master/pac4j-oauth/src/main/java/org/pac4j/oauth/client/BaseOAuth20Client.java

Please let me know if you have any other suggestions.


Thanks,
Bobby



If you reply to this email, your message will be added to the discussion below:
http://forum.ratpack.io/Configure-Ratpack-as-OAuth-Resource-Server-tp1234.html
To start a new topic under Ratpack Forum, email [hidden email]
To unsubscribe from Ratpack Forum, click here.
NAML