-
Notifications
You must be signed in to change notification settings - Fork 7
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
LG-3167 Send is_auth_cert in token for HSDPD-12 #159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -134,6 +135,7 @@ | |||
|
|||
it 'returns a token with a uuid and subject' do | |||
allow(Figaro.env).to receive(:client_cert_escaped).and_return('true') | |||
allow_any_instance_of(Certificate).to receive(:has_eku?).and_return(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so much stubbing 😭 --- is it possible to create a cert from the PEM below and then modify it and make a new PEM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
How: Check for extendedKeyUsage ... 1.3.6.1.5.2.3.4 in the x509 cert extensions and send is_auth_cert boolean back in the token.