-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebwarp.php
More file actions
19 lines (19 loc) · 800 Bytes
/
Copy pathwebwarp.php
File metadata and controls
19 lines (19 loc) · 800 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 = {app: "webwarp"};
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_ww");?>&redirect_uri=<?php echo getenv("ebrains_redirect_ww");?>&scope=profile+email+team+roles&state="+encodeURIComponent(JSON.stringify(state));
</script>
</head>
<body>
Redirecting to IAM...
</body>
</html>