-
Notifications
You must be signed in to change notification settings - Fork 23
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
Access to OpenSSL Context #10
Comments
Please find my comment here - #11 (comment) |
Even though #11 is merged - you should consider not using the proposed fix. |
Should we somehow provide a way which information is relevant, which then gets added to the requests bundle? |
Unfortunately, the connection provider knows nothing about requests. We could probably put something to connection properties, however those, at the moment, are capable of storing strings only. @MHaselmaier , |
Yes I used the ContextConfigurer to enable Client Certificate authentication. However I would like to access the infomation of the certificate to used it for e.g. authorization. Meaning giving different certificate holders different access to data / endpoints. |
It is possible to use We have to modify the connection provider so that it will include Client Cert Info in the stream context. |
Ok, I'll have a look at it. |
As far as I'm aware there is currently no way to access the information of the client certificate using oatpp-openssl.
However, it could be easily available if
oatpp::openssl::Connection
would provide a getter for the OpenSSL context.Would you be open to add such a getter?
Users could then e.g. implement a
oatpp::web::server::interceptor::RequestInterceptor
and dynamic_cast therequest->getConnection()
tooatpp::openssl::Connection
and access the OpenSSL context to retrieve any available information.The text was updated successfully, but these errors were encountered: