Skip to content

Nexirift/plugin-oidc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unmaintained

This project is currently unmaintained. While it hasn't received updates for over 7 months, it remains fully functional. However, Nexirift is moving towards a unified authentication server using different technologies, eliminating our need for OpenID authentication. If you're interested in maintaining or contributing to this project, we welcome your involvement - please contact us at [email protected].

NPM Version NPM License NPM Downloads

plugin-oidc

A basic GraphQL Yoga plugin that adds functionality to authorize users using an OpenID Connect compatible service.

How does it work?

This plugin checks an access token from the Authentication header with an OpenID Connect compatible server to verify if it's valid using the introspect endpoint. Additionally, it passes back the response info, which includes information like the preferred_username, scope, email, etc. The provided information can then be used in the GraphQL Yoga server to identify users, such as storing them in a database based on ID.

Example

Please see here for an example of how to use the project.

Credits

Disclaimer: This plugin was based off of the plugin-jwt source code.

About

[Unmaintained] Plugin for GraphQL Yoga that adds OpenID authentication and authorization.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%