0.0.16 • Published 2 years ago

@wheatstalk/oidc-mock v0.0.16

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

OIDC Mock

A CDK construct that sets up an OIDC Identity Provider REST API for integration testing.

Features

  • Passwordless Authorization Code Flow
  • Unrestricted redirect_uri
  • Convention-based client_id / client_secret
  • PKCE verification for S256 and plain
  • Authorization code grant
  • Client credentials grant
  • Username grant
  • Refresh token grant

Scopes

ScopeDescription
openidEnable OIDC and provide a JWT
offline_accessEnable provide refresh tokens

Usage

import { App, Stack, CfnOutput } from 'aws-cdk-lib';
import { OidcMockApi, OidcMockTable } from '@wheatstalk/oidc-mock';

const app = new App();
const stack = new Stack(app, 'integ-oidc-mock');

const mockApi = new OidcMockApi(stack, 'OidcMockApi');

new CfnOutput(stack, 'OidcMockApiUrl', {
  value: mockApi.openidConfigurationUrl,
});

app.synth();

Mock endpoint addresses

PathDescription
/authAuthorization endpoint
/tokenToken endpoint
/userinfoUser info endpoint (planned)
/.well-known/openid-configurationOpenID auto-configuration endpoint
/.well-known/jwks.jsonJWKS endpoint (crypto signature keyset for JWTs)
0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago