-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.php
More file actions
19 lines (19 loc) · 777 Bytes
/
index.php
File metadata and controls
19 lines (19 loc) · 777 Bytes
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="<?php echo getenv("ebrains_auth");?>?response_type=code&login=true&client_id=<?php echo getenv("ebrains_id_wa");?>&redirect_uri=<?php echo getenv("ebrains_redirect_wa");?>&scope=profile+email+team+roles&state="+encodeURIComponent(JSON.stringify(state));
</script>
</head>
<body>
Redirecting to IAM...
</body>
</html>