forked from Neural-Systems-at-UIO/WebAlign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
19 lines (19 loc) · 786 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to IAM...</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
let state={};
for(let setting of location.search.substring(1).split("&")){
let [key,value]=setting.split("=");
state[key]=value;
}
location.href="https://iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/auth?response_type=code&login=true&client_id=webalign-dev&redirect_uri=https://webalign.apps-dev.hbp.eu/startpage.php&scope=profile+email+team+roles&state="+encodeURIComponent(JSON.stringify(state));
</script>
</head>
<body>
Redirecting to IAM...
</body>
</html>