Skip to content

Play OAuth2 Resource Server POC using Silhouette 4.x

License

Notifications You must be signed in to change notification settings

gonzalad/sample-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Resource Server Demo

Objective

This sample shows an OAuth RS (or microservice).

It relies on Silhouette and Oauth2 for caller authorization.

Usage

  1. Start Talend IAM OIDC

  2. Register your OAuth Application Client in IAM

    Name Value
    Application Name Sample Play RS Application
    Redirect URL http://localhost:9999/login

    Copy the created clientId and clientSecret, you'll need them in the following step.

  3. Configure sample-ac application

    Note : I should change the keys, this isn't the OIDC Application Client !

    conf/silhouette.conf with the following info :

    Name Value
    silhouette.oidc.clientId
    silhouette.oidc.clientSecret
    silhouette.oidc.tokenIntrospectUri OAuth AS introspect endpoint
  4. Start sample-rs application on port 9001

  5. Test it :

About

Play OAuth2 Resource Server POC using Silhouette 4.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published