GithubHelp home page GithubHelp logo

ilmimris / apollofederation-keycloak-demo Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 399 KB

Demo of Apollo Federation with Keycloak as identity and access management

License: MIT License

JavaScript 100.00%
apollo-federation keycloak

apollofederation-keycloak-demo's People

Contributors

dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apollofederation-keycloak-demo's Issues

Access Denied to Playground

Hi,
Apollo Federation & Keycloack infos are sparse, so thanks for this repo ! ๐Ÿ‘

I keep on getting stuck trying to access Playground

I am logging to the realm signin form after a successful redirect from computer1:4000/playground, but i am getting a 'Access Denied'

Logs at the gateway :
Could not obtain grant code: Error: Grant validation failed. Reason: invalid token (wrong audience)

My settings (computer1 being localhost, but i am using an internal domain name)

  • Gateway on computer1:4000
  • Microservice 1 on computer1:9999
  • Keycloack server on othermachine;8180

I did follow your blog (waiting for part 3 and 4), the posts you did on keycloack-graphql-connect github and went through the code on you repo.

Client Settings


- Access Type : Confidential
- Standard Flow ON
- Implicit Flow ON
- Direct Access Grant ON
- Service Account ON
- Authorization ON
Root URL : http://computer1:4000
Valid Redirect URL : *
Base URL : /graphql 
Admin URL : empty
Web Origins : *

OIDC Json

{
  "realm": "app",
  "auth-server-url": "http://othermachine:8180/auth",
  "ssl-required": "external",
  "resource": "gateway",
  "verify-token-audience": true,
  "credentials": {
    "secret": "SECRET"
  },
  "use-resource-role-mappings": true,
  "confidential-port": 0,
  "policy-enforcer": {}
}

i tried with a simple git clone for you repo
I didn't succeed to launch the docker-compose or to import the realm-export.json.
Reading through the realm-export, i created manually the Realm/Client/ClientScope/Roles.

All services are independently fine, but the gateway stills throws an access denied after authentification

I tried your repo (https://github.com/ilmimris/keycloack-apollo-explore.git), works lit a charm with my settings (Keycloack server on 8180)

Do you have some hints for the access denied / wrong audience?

Thks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.