Skip to content
Snippets Groups Projects
Commit e42ed859 authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch '128-make-sessions-into-frontend-automatic-if-already-authenticated' into 'main'

Resolve "Make sessions into frontend automatic if already authenticated"

Closes #128

See merge request !102
parents 950a8fa1 716a153f
No related branches found
No related tags found
1 merge request!102Resolve "Make sessions into frontend automatic if already authenticated"
Pipeline #38558 passed with stages
in 6 minutes and 22 seconds
/**
* Login page that starts the OAuth2 authentication flow.
*/
import React from 'react';
import React, { useEffect } from 'react';
import clsx from 'clsx';
import { LockClosedIcon } from '@heroicons/react/solid';
......@@ -25,6 +25,14 @@ export function Login() {
}
};
useEffect(() => {
// On-load, already start authentication process as there are no other
// authentication methods to choose from
handleSubmit();
});
// Show login/authentication process. On load of the page the authentication
// starts right away, hench the "Authenticating ..." prefiled in the button
return (
<div className="min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8">
<div className="max-w-md w-full space-y-8">
......@@ -42,7 +50,7 @@ export function Login() {
<span className="absolute left-0 inset-y-0 flex items-center pl-3">
<LockClosedIcon className="h-5 w-5 text-white group-hover:text-primary-light" aria-hidden="true" />
</span>
Sign in
Authenticating ...
</button>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment