Skip to content

Examples of OAuth 2.0/OIDC Connections

The examples in this section show how to use ybtools options that support OAuth/OIDC connectivity.

Example with --auth-direct

The following ybload command connects to a specific Yellowbrick instance by using the --auth-direct option with --username and -W:

$ ./ybload -h myybdinstance.elb.us-east-1.amazonaws.com -d premdb -t premdb.match --format csv 
--auth-issuer https://cdwm.beta.yellowbrickcloud.com/auth/realms/my_realm.com --auth-direct --username me.myself@myrealm.com -W 
--client-id ybauth /home/premdata/match.csv 
Password for user me.myself@myrealm.com: 
...

Example with --auth-browser

In this example, a browser window opens and requests the user's password. A Login Successful message is displayed when authentication succeeds.

$ ./ybload -h myybdinstance.elb.us-east-1.amazonaws.com -d premdb -t premdb.match --format csv 
--auth-issuer https://cdwm.beta.yellowbrickcloud.com/auth/realms/my_realm.com --auth-browser --username me.myself@myrealm.com
--client-id ybauth /home/premdata/match.csv 
...