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

Update homepage messaging about authenticating with justice identity #1286

Merged
merged 5 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion controlpanel/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ class UserAdmin(admin.ModelAdmin):
"username",
"auth0_id",
"email",
"justice_email",
"is_superuser",
"migration_state",
"last_login",
)
actions = [make_migration_pending]
exclude = ("password",)
list_filter = ("migration_state",)
list_filter = [
"migration_state",
("justice_email", admin.EmptyFieldListFilter),
]
search_fields = (
"username",
"email",
Expand Down
15 changes: 10 additions & 5 deletions controlpanel/frontend/jinja2/justice_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Authenticate with your Justice identity</h1>
<p class="govuk-body-l">As part of upcoming work to offer new tools and services, all Analytical Platform will need to authenticate with their Justice identity so that we can store your @justice.gov.uk email address.</p>
<p class="govuk-body">You will need to complete authentication by 30th April 2024. If you do not currently have a @justice.gov.uk email address, <a href="#" class="govuk-link">see our guidance on requesting one.</a></p>
<p class="govuk-body-l">We're planning some changes to how you log into the Analytical Platform. We are transitioning from using GitHub to your Microsoft email (@justice.gov.uk, @publicguardian.gov.uk, etc).</p>
<p class="govuk-body">For now all you need to do is click the button below to authenticate via Microsoft 365. This is a one-time operation which will link your current Analytical Platform account information to your Microsoft email address. This means you'll keep all your current permissions, and there's nothing extra you need to do.</p>
<p class="govuk-body">You will continue to log in to the Control Panel via your GitHub account as usual for now. You can read further information about these changes in the <a href="https://mojdt.slack.com/archives/C4PF7QAJZ/p1712592546423129">#analytical-platform-support</a> Slack channel.</p>
<p class="govuk-body"></p>
<div class="govuk-button-group">
<form method="POST" action=".">
{{ csrf_input }}
<button type="submit" class="govuk-button" data-module="govuk-button">
Authenticate with Justice identity
</button>
<a class="govuk-button govuk-button--secondary" href="{{ url('list-tools') }}">
Skip for now
</a>
</form>
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
<h3 class="govuk-heading-s">If you don't have a Microsoft 365 account</h3>
<p class="govuk-body"><a href="https://mojprod.service-now.com/moj_sp?id=sc_cat_item&sys_id=7404ac3137b723005f7cd1b543990e3e">You can request one here</a>. Please raise a request for an account as soon as you can. It can take a week or more to get fully set up with the correct access.</p>
<p class="govuk-body"><a class="govuk-link" href="{{ url('list-tools') }}">Click here to access the Control Panel while you wait for your account.</a></p>
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
<p class="govuk-body">If you have any questions or need assistance, please reach out to us on <a href="https://moj.enterprise.slack.com/archives/C06TC4KKKUL">#analytical-platform-github-identity-migration</a> Slack channel.</p>
</div>
</div>
</div>
Expand Down
Loading