Skip to content

Auth methods chat

Tristram Oaten edited this page Jan 12, 2022 · 2 revisions

Hi friends, I just asked this in the Infrastructure Weekly meeting, but I'll open it up to everyone:We (in #collect-information-from-users) are considering what future authentication options gov.uk publishers would use to set up and retrieve data using our Hypothetical Form Builder. Google auth is just for GDS, PAAS auth is just for paas - what method or methods would be best for us to support? (edited)

50 replies


Philip Potter  1 day ago

the "users" here are service team users, correct?

Tris Oaten![:rust:](  1 day ago

publishers of content anywhere on govuk, ie, many different gov departments

Tris Oaten![:rust:](

Screenshot from 2022-01-11 16-15-11.removed 

](https://files.slack.com/files-pri/T8GT9416G-F02TXBRJXRP/screenshot_from_2022-01-11_16-15-11.removed)

Tris Oaten![)  1 day ago

these people, I think?

Tris Oaten![:rust:](https://slack-imgs.com/?c=1

if they could self-serve forms, what auth would be best to use (edited)

Richard Towers  23 hours ago

Sounds similar to the PaaS team's investigation into authentication a while ago.The conclusion back then was if you support single sign on from Google and Microsoft, you will have covered the majority of departmental users. And your users don't have to worry so much about offboarding, because they're using their corporate identities.

Richard Towers  23 hours ago

If you're looking at people who already publish content to GOV.UK though, there's the signon app. Which is not without its flaws, but has the big advantage that people already have accounts.

Tris Oaten:rust:  23 hours ago

oh that's great thank you Rich

Tris Oaten:rust:  23 hours ago

we're currently scoping only to govuk

Tris Oaten:rust:  23 hours ago

I'm not familiar with the publishing setup, will all publishers certainly have signon creds?

Jamie Maynard:blob_cozy:  23 hours ago

Always use GovUK Sign-in … Just sayin’ :wink:

Tris Oaten:rust:  23 hours ago

@richard.towers what are the flaws we should be wary of?

Richard Towers  23 hours ago

Everyone has to use MFA, and we only support TOTP. This annoys some users who can't use apps on phones.But all publishers who use Whitehall will have accounts already, so they won't blame you for that.

Tris Oaten:rust:  6 hours ago

@jamie.maynard do you have a link to sign-in docs, for implementation investigation? Is it oauth etc?

Jamie Maynard:blob_cozy:  6 hours ago

@alex.wilson @kerr.rainey Are probably better people to ask :slightly_smiling_face:

Jamie Maynard:blob_cozy:  6 hours ago

I believe its OIDC under the hood but you’d need some sort of authorised user management as well… Or any citizen could use your service… but in principle we have the principle of “one login for government” maybe that should translate to services for Civil Servants as well just as a thought

Tris Oaten:rust:  6 hours ago

also, I'm fuzzy about the difference between Sign-In and Sign-On

Tris Oaten:rust:  6 hours ago

SO is for civil servants?

Richard Towers  6 hours ago

Sign on is for civil servants who need to interact with gov.uk publishing.Sign in is the digital identity single sign on (:try-not-to-cry:) product for everyone (I think) who needs to authenticate to a service. It's also the newer, shinier product.

Jamie Maynard:blob_cozy:  6 hours ago

What Richard said :smile:

Tris Oaten:rust:  6 hours ago

neat! Are we planning on using sign-in for everything, eventually? with like an "admin" flag for civil servants?

Jamie Maynard:blob_cozy:  6 hours ago

I don’t think its been thought of in those terms yet… Although I can’t see why it couldn’t be at some point

Tris Oaten:rust:  5 hours ago

who should I talk to about hat? (edited)

Jamie Maynard:blob_cozy:  5 hours ago

Ultimately Sign-in provides an identity like any id federation its down to your system to determine what that Identity can do :thinking_face:

Richard Towers  5 hours ago

There's no plan that I've heard of to use sign-in for gov.uk publishing (although I wouldn't necessarily object).The admin flag you talk about starts to stray from authentication into authorisation, which should probably be solved by a separate system.

Richard Towers  5 hours ago

Currently sign-on solves both authentication and authorisation (e.g. can this person update HMRC content? can they update the prime minister's page? etc.). But it doesn't do a great job of either, tbh.

Philip Potter  5 hours ago

I understand we (plan to?) use GOV.UK sign-in as the auth system for service teams to self-serve their stuff. I'm not that close to this area though so I'm a bit hazy on the details.

Kerr Rainey:crow:  5 hours ago

From a technical pov GOV.UK Sign In can be used as a standard OIDC provider.

Philip Potter  5 hours ago

The product focus for DI is definitely end users and not service team users, but that doesn't mean that service team users couldn't use it

Tris Oaten:rust:  5 hours ago

be nice to unify everything though, right?

Philip Potter  5 hours ago

yes, but priorities. DI already has a gazillion things to do

Tris Oaten:rust:  5 hours ago

oh of course, I wasn't imagining any extra work for DI

Richard Towers  5 hours ago

Similarly GOV.UK - we've got a mostly working authentication solution right now, with limited benefit to replacing it. So expect the status quo to reign

Jamie Maynard:blob_cozy:  5 hours ago

If the principle is one login for government then part of me thinks we should be able to consume those identities and use that… As I said… Authorisation is a separate system from ID

Tris Oaten:rust:  5 hours ago

currently I'm thinking we'll support multiple auth methods - hedge our bets on who "wins"

Philip Potter  5 hours ago

Authentication. Authorisation is someone else's problem

Jamie Maynard![:blob_cozy:](  5 hours ago

But if you had an open source authorisation system which consumed gov.uk sign-on ids that would benefit all of gov of course

Tris Oaten:rust:  5 hours ago

ah apologies

Tris Oaten:rust:  5 hours ago

I'm indeed conflating these terms

Jamie Maynard:blob_cozy:  5 hours ago

That said… in theory keycloak will already be able to consume those identities if they’re just standard oidc identities. (edited)

Richard Towers  5 hours ago

One authentication feature that departments want is to use their corporate (gsuite / microsoft360) account to access services. That reduces the amount of creds their staff have to use, improves their ability to manage access centrally, and makes joiners / leavers processes simpler.I strongly doubt that DI will want to look at that aspect of authentication any time soon, because it doesn't make nearly as much sense for members of the public.It's possible (but unlikley) that sign-on might be interested in adding that feature though.

Jamie Maynard:blob_cozy:  5 hours ago

But DI is just another identity provider like Google work spaces and Microsoft AD… If you fill in the authorisation piece of the puzzle for one you solve it for all three

Richard Towers  5 hours ago

Yeah, I think we agree that authorisation is a problem to be solved separately

Jamie Maynard:blob_cozy:  5 hours ago

@kerr.rainey Does the ID provided by gov.uk sign-on provide an e-mail address with in it?

Kerr Rainey:crow:  5 hours ago

Yes.

Richard Towers  5 hours ago

FWIW - GOV.UK Publishing are thinking a bit about improving our authorisation situation. At the moment we have to write a lot of code to model who-has-access-to-what. We think we can probably do better.Eventually #collect-information-from-users will run into the same authorisation problems we have. Might be worth a conversation there so we don't solve the same problem twice.

Jamie Maynard:blob_cozy:  5 hours ago

Awesome! :smile:

Kerr Rainey:crow:  5 hours ago

But you can't revoke that account. Once it is set up, it's just the "username". There is no ongoing verification that the user still has access to that email.

Jamie Maynard:blob_cozy:  5 hours ago

No so good… oh do we provide the ability to change e-mail addresses on sign-on ids?

Kerr Rainey:crow:  5 hours ago

yes, or at least we will. (edited)

Clone this wiki locally