aerogear / keycloak-connect-graphql

Add Keyloak Authentication and Authorization to your GraphQL server.
Apache License 2.0
157 stars 23 forks source link

accessToken is undefined and roles are also not coming in auth #134

Open Mohsinfistix opened 2 years ago

Mohsinfistix commented 2 years ago

"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAuthorizedByRole = void 0; const KeycloakContext_1 = require("../KeycloakContext"); /*

BigBallard commented 2 years ago

@Mohsinfistix you need to provide more context and explanation than just posting code if you expect any help.

proftom commented 2 years ago

Agreed @Mohsinfistix needs to provide more context, however, I want to ask, if I passes a Bearer token in an authorization header, should I expect accessToken to equal that bearer token?

BigBallard commented 2 years ago

@proftom that is my understanding. I haven not checked myself but would be easy enough to test in isolation.

okanji commented 2 years ago

I am having a similar issue, the access token is not defined but I do have a bearer token in the header

image