2 bsh % unp = "bigbird2010:bigbird2010";
\r
3 <bigbird2010bigbird2010>
\r
4 bsh % String encoding = new sun.misc.BASE64Encoder().encode (unp.getBytes());
\r
5 bsh % encoding = new sun.misc.BASE64Encoder().encode (unp.getBytes());
\r
6 <YmlnYmlyZDIwMTBiaWdiaXJkMjAxMA==>
\r
8 bsh % unp = "bigbird2010:bigbird2010";
\r
9 <bigbird2010:bigbird2010>
\r
10 bsh % encoding = new sun.misc.BASE64Encoder().encode (unp.getBytes());
\r
11 <YmlnYmlyZDIwMTA6YmlnYmlyZDIwMTA=>
\r
13 bsh % String decode(String s){return new String(Base64.decode(s.getBytes()));}
\r
15 bsh % decode("dGVzdC1wYWhtYTp0ZXN0");
\r
17 //used for DELETE /cspace-services/accounts/9230dc97-0888-4252-8c89-795c92305ca0 HTTP/1.1
\r
19 //used for creating accounts, roles, etc:
\r
20 bsh % decode("dGVzdDp0ZXN0");
\r
23 //used for dimension service tests:
\r
24 bsh % decode("dXNlcjFAbXVzZXVtMS5vcmc6dXNlcjFAbXVzZXVtMS5vcmc=");
\r
25 user1@museum1.org:user1@museum1.org
\r
28 bsh % decode("dGVzdDpudWxs");
\r
29 test:null (no password)
\r
30 ==> HTTP/1.1 401 Password Incorrect/Password Required
\r
32 bsh % decode("dXNlcjJAbXVzZXVtMi5vcmc6dXNlcjJAbXVzZXVtMi5vcmc=");
\r
33 user2@museum2.org:user2@museum2.org
\r
34 DELETE OK on DELETE /cspace-services/dimensions/7922ea12-401d-4a7b-9f1a HTTP/1.1
\r
38 //used for incorrect password.
\r
39 Some more forbidden auths:
\r
40 bsh % decode("YmFieWJvcDpiYWJ5Ym9wMDk=");
\r
42 bsh % decode("YmFybmV5OmJhcm5leTA4");
\r