# OAuth 2.0 & OpenID Connect Samples

OAuth 2.0 authorization framework and OpenID Connect authentication protocol examples

> Canonical page: https://test.elysiatools.com/en/samples/oauth-openid-connect

- **Category:** Authentication & Authorization

- **Keywords:** oauth 2.0, openid connect, authentication, authorization, jwt, sso

## Examples

- **OAuth 2.0 Authorization Code Flow**: Implementation of OAuth 2.0 authorization code flow for secure API access
- **OpenID Connect (OIDC) Implementation**: Complete OpenID Connect implementation with ID tokens and user authentication
- **Resource Owner Password Credentials Flow**: OAuth 2.0 resource owner password credentials grant implementation

## Related tools

- [OAuth 2.0 / OIDC Authorization Code with PKCE Flow Visualizer](https://test.elysiatools.com/en/tools/oauth-oidc-authorization-code-pkce-flow-visualizer): Simulate the Authorization Code flow with PKCE end to end: verifier/challenge generation, authorization URL, token exchange, ID Token validation checklist and an interception-attack demo.
- [Connect Four](https://test.elysiatools.com/en/tools/connect-four): Classic Connect Four (7×6). Drop pieces that fall by gravity; first to line up four horizontally, vertically or diagonally wins. Play against a heuristic AI, a hard alpha-beta AI, or a friend locally.

## Related content

- [JWT Samples](https://test.elysiatools.com/en/samples/jwt-samples): Comprehensive JWT examples from basic token structure to advanced security implementations
- [OAuth 2.0 Samples](https://test.elysiatools.com/en/samples/oauth2-samples): OAuth 2.0 implementation examples including authorization flows, client configurations, and security best practices
- [SAML Samples](https://test.elysiatools.com/en/samples/saml-samples): SAML (Security Assertion Markup Language) implementation examples including SSO, metadata, and identity provider configurations
- [Zero Trust Architecture Samples](https://test.elysiatools.com/en/samples/zero-trust-samples): Comprehensive Zero Trust architecture samples covering identity authentication, network segmentation, micro-segmentation strategies, and secure access control
- [Casbin Access Control Library](https://test.elysiatools.com/en/samples/casbin): Powerful and efficient open-source access control library
- [Passport.js Authentication Middleware](https://test.elysiatools.com/en/samples/passportjs): Node.js authentication middleware with Passport.js and various strategies
