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

Add support for SSO errors coming from the API #913

Merged
merged 7 commits into from
Aug 15, 2020

Conversation

eiriksm
Copy link
Contributor

@eiriksm eiriksm commented Jul 29, 2020

Hello, thanks for this!

I just had a case where a token I used were throwing a runtimeexception because the org in question for the resource, had enforced SAML authentication. This was not something I could explicitly catch and do something with, so here is a PR fixing that.

Thanks again, keep up the good work!

@eiriksm
Copy link
Contributor Author

eiriksm commented Jul 29, 2020

As a reference, here are some docs referencing this header and how to use it:

https://developer.github.com/v3/auth/#authenticating-for-saml-sso

@acrobat
Copy link
Collaborator

acrobat commented Aug 11, 2020

Looks good @eiriksm! Can you apply the suggested changes from styleci and add a test for the new exception logic? Thanks!

@eiriksm
Copy link
Contributor Author

eiriksm commented Aug 15, 2020

Added a test and got styleCI passing 🚢

@acrobat acrobat merged commit 9b01208 into KnpLabs:2.x Aug 15, 2020
@acrobat
Copy link
Collaborator

acrobat commented Aug 15, 2020

Thanks @eiriksm! And congrats on your first contribution! 🎉

@eiriksm eiriksm deleted the feat/sso-exception branch August 15, 2020 15:37
acrobat added a commit that referenced this pull request Oct 5, 2020
* 2.x:
  Add OutsideCollaborators api
  Fix: Wrong PHPDoc description
  feature #913 Add support for SSO errors coming from the API (eiriksm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants