blob: fc7ca5b106b2f6521cfc986c2004c6b2923114cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
BROWSER="w3m"
if [ -n "${DEBUG}" ]; then
set -x
BROWSER="xdg-open"
fi
curl http://idp.example.com:8080/saml/metadata.xml
curl http://idp.example.com:8080/.well-known/openid-configuration
curl http://idp.example.com:8080/.well-known/oauth-authorization-server
curl http://idp.example.com:8080/.well-known/webfinger
curl http://ui.example.com:8080/saml/metadata.xml
$BROWSER http://ui.example.com:8080/saml/new
$BROWSER http://ui.example.com:8080/oidc/new
curl http://api.example.com:8080/projects.json
curl -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2YmYxZTlmMy02OGIwLTQ4NmYtOGVlZi0wODFmZTg2YjJlODMiLCJpYXQiOjE3NDEyOTAzMzJ9.e30=' -XPOST http://api.example.com:8080/projects --data '{"name": "gitlab"}'
curl http://api.example.com:8080/projects.json
|