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

Service Provider (SP) private key #14

Closed
ghost opened this issue Jan 28, 2021 · 2 comments
Closed

Service Provider (SP) private key #14

ghost opened this issue Jan 28, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@ghost
Copy link

ghost commented Jan 28, 2021

Net::SAML2::Binding::Redirect required a Service Provider (SP) private key. But Microsoft Azure do not present this key. It allow to download only Certificate.

image

So, how can I use this code without key?

my $redirect = Net::SAML2::Binding::Redirect->new(
key => '/path/to/SPsign-nopw-key.pem', # Service Provider (SP) private key
url => $sso_url, # Service Provider Single Sign Out URL
param => 'SAMLRequest' OR 'SAMLResponse', # Type of request
cert => '/path/to/IdP-cert.pem' # Service Provider (SP) certificate
);
my $url = $redirect->sign($authnreq);
my $ret = $redirect->verify($url);

@timlegge
Copy link
Contributor

The SP service provider is the application the Idp is the Identity Provider (Microsoft Azure in this case)

So the key required here is the applications key that can be used to sign AuthnRequests

TIm

@timlegge timlegge self-assigned this Jan 28, 2021
@timlegge timlegge added the documentation Improvements or additions to documentation label Jan 28, 2021
@ghost
Copy link
Author

ghost commented Jan 28, 2021

Thank You!

@timlegge timlegge added this to the 0.33-TRIAL milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant