Skip to content
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

mTLS access token #76

Merged
merged 1 commit into from
Oct 10, 2022
Merged

mTLS access token #76

merged 1 commit into from
Oct 10, 2022

Conversation

nov
Copy link
Owner

@nov nov commented Oct 9, 2022

close #56

c = OpenIDConnect::Client.new(
  identifier: 'id',
  secret: 'secret',
  userinfo_endpoint: 'https://example.com/userinfo',
  private_key: OpenSSL::PKey::RSA.generate(2048),
  certificate: OpenSSL::X509::Certificate.new
)

t = OpenIDConnect::AccessToken.new(access_token: 'token', client: c).to_mtls
t.userinfo!

@nov nov merged commit 6682dd7 into master Oct 10, 2022
@nov nov deleted the feature/mtls_on_userinfo branch October 10, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant