Guest User

Untitled

a guest
Jan 11th, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. # Base URL of TeamForge site.
  2. site_url="https://teamforge.example.com"
  3.  
  4. # TeamForge authentication credentials.
  5. username="foo"
  6. password="bar"
  7.  
  8. # Requested scope (all)
  9. scope="urn:ctf:services:ctf urn:ctf:services:svn urn:ctf:services:gerrit urn:ctf:services:soap60"
  10.  
  11. curl -d "grant_type=password&client_id=api-client&scope=$scope&username=$username&password=$password" $site_url/oauth/auth/token
  12.  
  13. $site="https://my.teamforge.site"
  14. $user="myuser"
  15. $pass="mypass"
  16. $scope="urn:ctf:services:ctf"
  17. curl "grant_type=password&client_id=api-client&scope=$scope&username=$user&password=$pass" -uri $site/oauth/auth/token
  18.  
  19. Invoke-WebRequest : A positional parameter cannot be found that accepts argument
  20. 'grant_type=password&client_id=api-client&scope=urn:ctf:services:ctf&username= *rest of line redacted for obvious reasons*
Add Comment
Please, Sign In to add comment