Difference between revisions of "Token generator"

From Gcube Wiki
Jump to: navigation, search
(Generate a qualified security token)
(Generate a qualified security token)
Line 14: Line 14:
 
== Generate a qualified security token ==
 
== Generate a qualified security token ==
  
Starting from gCube releases 4.1, a new functionality is available: qualified tokens creation. A qualified token is nothing more than a labeled token, where a label must be a single meaningful word (composed only by alphanumeric characters). You are not allowed to create more than a given number of qualified tokens per scope (the current value is 10). The following screenshot shows you the steps needed to create a qualified token ''testQualifier''. Push on the ''Advanced'' button, and on the plus one
+
Starting from gCube releases 4.1, a new functionality is available: qualified tokens creation. A qualified token is nothing more than a labeled token, where a label must be a single meaningful word (composed only by alphanumeric characters). You are not allowed to create more than a given number of qualified tokens per scope (the current value is 10). The following screenshot show you the steps needed to create a qualified token ''testQualifier''. Push on the ''Advanced'' button, and on the plus one
  
 
[[File:Advanced_functionality.png|300px]]
 
[[File:Advanced_functionality.png|300px]]

Revision as of 22:28, 21 October 2016

gCube Token Portlet

The gCube Authorization Framework is based on the concept of Token. A token is basically a random string which encapsulates some information. Two of them are: who's the owner (i.e., the username) of the token and for which context (VO/VRE) that token is valid. To generate qualified tokens or retrieve your token for a context you can use the Token Generator Portlet, deployed in almost all Infrastructure's contexts.

Retrieve the security token

The token for each context is automatically created for you. So, the only thing you can do is to retrieve it by using the portlet

Token generator.png

Push on the show button to see it together with your current username.

Token generator see modified.png

Generate a qualified security token

Starting from gCube releases 4.1, a new functionality is available: qualified tokens creation. A qualified token is nothing more than a labeled token, where a label must be a single meaningful word (composed only by alphanumeric characters). You are not allowed to create more than a given number of qualified tokens per scope (the current value is 10). The following screenshot show you the steps needed to create a qualified token testQualifier. Push on the Advanced button, and on the plus one

Advanced functionality.png

Now you can insert a qualifier for the token you are going to create

Insertqualifier.png

Push on the generate button and if your request succeeds the new qualifier is added to the listbox

Succeed.png

Now you can retrieve the token associated to the qualifier just selecting the qualifier itself. Hide the advanced panel and the token of the current context is shown again.

More information about the Auth Framework

Authorization Framework