Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 1.89 KB

README.md

File metadata and controls

60 lines (49 loc) · 1.89 KB

React Keycloak

Keycloak React Apollo Client

Examples for @react-keycloak packages that using react-router-dom and send GraphQL request using Apollo Client

License Github Issues


Examples Configuration

Keycloak Client frontend Configuration:

- Access Type : Public
- Standard Flow ON
- Implicit Flow OFF
- Direct Access Grant ON
- Root URL : empty
- Valid Redirect URL : *
- Base URL : empty 
- Admin URL : empty
- Web Origins : *

Keycloak Client backend Configuration:

- Access Type : Confidential
- Standard Flow ON
- Implicit Flow OFF
- Direct Access Grant ON
- Service Accounts Enabled ON
- Authorization Enabled ON
- Root URL : empty
- Valid Redirect URL : *
- Base URL : empty 
- Admin URL : empty
- Web Origins : *

Keycloak audience mapper setting:

  1. Create new audience at Client Scope menu
  2. Go to tab mappers
  3. Create new mapper for frontend as following:
...
Mapper Type : Audience
Included Client Audience : Frontend
...
  1. Repeat step 3, change frontend to backend client
  2. Save this client scope
  3. Add this client scope into default client scopes for each frontend and backend at tab Client Scopes

Note: The demo apps are not meant to be production-ready nor starter-kits but just a way to show this module components and their usage.