-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appsync OPENID_CONNECT support? #360
Comments
@tuomassalo you might want to create this issue in serverless-appsync-plugin (more active) |
I experienced similar problems using custom OIDC provider implementation using node-oidc-provider. I do not know if this is related, but the following settings worked:
I suspect JWT and pairwise related availability is required. |
Anything new on this subject ? |
For anyone who is trying to add autentication as the OPENID_CONNECT. This format worked perfectly for me: appSync: If you want to add multiple authentication modes for the appsync. Examples are provided here by the serverless-appsync-plugin |
I'd like to use AppSync - but with OpenID Connect instead of Cognito. Since I've found no example code anywhere (!), I've been trying to modify this repo for the purpose.
For now, I've done more or less these steps:
app-backend/appsync/dynamo/serverless.yml
:updated
serverless-appsync-plugin
to 1.x and fixed some migration stuff as per https://github.com/sid88in/serverless-appsync-plugin#-migration-from-versions-prior-to-10updated most of the modules in
app-client/appsync-client/package.json
disabled
Amplify
andwithAuthenticator
from/Users/naapuri/dev/witchcase/app-client/appsync-client/src/App.js
- ** should I not do that?**tried to manually inject an id token:
Now my application sends the token as
Authorization: ey...
within GraphQL endpoint queries. The GraphQL queries give me errors as follows:If the token is expired or malformed, I get a 401 and a decent error message telling me that.
If I have set a value to
clientId
in AppSync settings, I get a 401:clientId
empty (or give it the same value as theaud
(!) param of my token), I get a 500:Now I'm quite stuck, since the GraphQL endpoint is a black box, and even if I enable AppSync logging, there's nothing informative in CloudWatch logs. My ngrok inspector show that an AWS server makes two (successful) requests to my OIDC test server: one to
/certs
and another one to/.well-known/openid-configuration
.Any idea what I might be missing? Or, any pointers where to start for using OIDC with AppSync?
The text was updated successfully, but these errors were encountered: