View Bazaar branches
Get this repository:
git clone https://git.not.enabled/canonical-identity-provider
Members of Ubuntu One PQM Team can upload to this repository. Log in for directions.

Canonical SSO provider has 4 active reviews. See all merge proposals.

Branches

Name Last Modified Last Commit
master 2023-09-25 09:23:38 UTC
Fix preference and (add) enforcing option for canonical email

Author: John Paraskevopoulos
Author Date: 2023-09-25 09:23:38 UTC

Fix preference and (add) enforcing option for canonical email

- Add enforce_canonical_email in OpenIDRPConfig model
- Add enforce_canonical_email migration
- Moves `get_canonical_email` and `is_canonical_email` to utils module.
Main reason for this is that this is where other functions like
`is_canonicalish_email` and `is_long_form_email` recide that are used
for OpenID authentication.
Also removes `is_long_form_email` and `is_canonicalish_email` from the
processors module since they are identical to the ones in utils module
- Adds new `get_suitable_email` function to take care of what email should
be returned to OpenID transactions. It calls `get_canonical_email`
function which is somewhat similar in behavior to what
`_get_suitable_email` does in views/server module. Also makes use of the
introduced `enforce_canonical_email`. Main reason for this is to
properly serve the `prefer_canonical_email` setting on OpenIDRPConfig
model. Now if the `prefer_canonical_email` is set (and not the enforcing
one), if the user doesn't have a canonical email, we will simply return
the currently preferred one. Whereas until now, in such scenarios we
were returning `None` instead.
- Replaces the `_get_suitable_email` function with the new one in utils
module which fixes and issue with the `prefer_canonical_email` setting
and also makes use of the `enforce_canonical_email` setting
- Switches to using the `get_suitable_email` function instead of the
`get_canonical_email` one with the caveat that it uses the fixed kwarg
`enforce_canonical` as True. This opens the opportunity to add more
options (such as "prefer_canonical_email") in SAML as well
- Fixes SN-2008

Merged from https://code.launchpad.net/~quantifics/canonical-identity-provider/+git/canonical-identity-provider/+merge/451884

11 of 1 result

Other repositories

Name Last Modified
lp:canonical-identity-provider 2023-09-25
lp:~shanepelletier/canonical-identity-provider 2023-09-22
lp:~quantifics/canonical-identity-provider 2023-09-20
lp:~bowenfan/canonical-identity-provider 2023-09-15
lp:~miloslu/canonical-identity-provider 2023-09-11
lp:~ahmadrezaf1991/canonical-identity-provider 2023-08-20
lp:~verterok/canonical-identity-provider 2023-07-07
lp:~yarima1996/canonical-identity-provider 2023-06-23
lp:~shanepelletier/canonical-identity-provider/+git/canonical-identity-provider-1 2023-06-07
lp:~roadmr/canonical-identity-provider 2023-04-29
lp:~lapkakotika88/canonical-identity-provider 2023-04-06
lp:~maxiberta/canonical-identity-provider 2023-03-10
lp:~rochlomond/canonical-identity-provider/+git/canonical-identity-provider-1 2023-02-04
lp:~rochlomond/canonical-identity-provider 2023-02-04
lp:~protarhikos/canonical-identity-provider 2023-02-03
lp:~mgbtrust/canonical-identity-provider 2023-02-03
lp:~leo78207/canonical-identity-provider 2023-01-27
lp:~sever173/canonical-identity-provider 2023-01-15
lp:~planetubuntu/canonical-identity-provider 2022-12-28
lp:~matt86/canonical-identity-provider 2022-11-12
lp:~cammiec91/canonical-identity-provider 2022-10-25
lp:~norpass/canonical-identity-provider 2022-10-22
lp:~chocolatik/canonical-identity-provider 2022-10-12
lp:~lofidevops/canonical-identity-provider 2022-09-08
lp:~tartley/canonical-identity-provider 2022-07-22
lp:~cjwatson/canonical-identity-provider 2022-07-22
lp:~odysseus-k/canonical-identity-provider 2022-06-30
lp:~spanzy98/canonical-identity-provider 2022-06-15
lp:~lgp171188/canonical-identity-provider 2022-05-24
lp:~moer/canonical-identity-provider 2022-04-27
lp:~silverdrake11/canonical-identity-provider 2022-04-13
lp:~sternracaba1/canonical-identity-provider 2022-02-25
lp:~suligap/canonical-identity-provider 2022-02-23
lp:~hosamail13/canonical-identity-provider 2021-09-22
lp:~jasonmckay50/canonical-identity-provider 2021-09-18
lp:~zhugeyyds/canonical-identity-provider 2021-09-04
lp:~adrix142/canonical-identity-provider 2021-08-19
lp:~ya-bo-ng/canonical-identity-provider 2021-06-10
lp:~wahyu32/canonical-identity-provider 2021-03-16
lp:~hendisutrisno85/canonical-identity-provider 2020-12-17
lp:~bartoszopka/canonical-identity-provider 2020-07-03
lp:~solazio/canonical-identity-provider 2020-07-01
lp:~bloodearnest/canonical-identity-provider/+git/canonical-identity-provider 2020-05-14
lp:~deadlight/canonical-identity-provider 2020-04-24
lp:~roadmr/canonical-identity-provider/+git/u2f-branch 2019-08-30
145 of 45 results
You can't create new repositories for Canonical SSO provider.