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 an IdpGetAll endpoint, return meta-url and login-url #399

Merged
merged 5 commits into from
Jul 12, 2018

Conversation

neongreen
Copy link
Contributor

No description provided.

@fisx fisx self-requested a review July 10, 2018 15:03
instance Arbitrary IdPList where
arbitrary = do
_idplProviders <- arbitrary
pure $ IdPList {..}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arbitrary = IdPList <$> arbitrary

but it's both good.

@@ -14,6 +14,9 @@ saml:
surname: Girlfriend
email: email:president@evil.corp

metaUrl: https://app.wire.com/sso/metadata # corresponds to 'APIMeta'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be under spInfo. There are at least two metadata urls, one for IdP, one for SP, and it's not clear from the name here which is meant.

Also, should the comment be in the source code? That's what it refers to.

@fisx
Copy link
Contributor

fisx commented Jul 10, 2018

I will continue review later, and probably make the changes to I can merge myself if you have no objections.

Looking really good so far, thanks!

@neongreen
Copy link
Contributor Author

neongreen commented Jul 10, 2018 via email


-- | A list of 'IdP's, returned by some endpoints. Wrapped into an object to
-- allow extensibility later on.
data IdPList = IdPList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that similarly to #402, we should make this an object

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it already is:

*Spar.Types Aaeson> encode (IdPList [])
"{\"providers\":[]}"

@neongreen
Copy link
Contributor Author

neongreen commented Jul 12, 2018 via email

@fisx
Copy link
Contributor

fisx commented Jul 12, 2018

All good (with my nit-picky changes). I'm going to merge this into #395 myself now.

@fisx fisx merged commit 8f23bdb into spar-integrationt-tests Jul 12, 2018
@fisx fisx deleted the spar-more-endpoints branch July 12, 2018 09:36
@fisx
Copy link
Contributor

fisx commented Jul 12, 2018

thanks!

@fisx
Copy link
Contributor

fisx commented Jul 12, 2018

(missing: idp-put endpoint; tests. i'll add that now to the parent PR.)

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.

3 participants