Commands for OAuth service

'bees' command and its ecosystem

License

License

GroupId

GroupId

org.cloudbees.sdk.plugins
ArtifactId

ArtifactId

oauth-plugin
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Commands for OAuth service
'bees' command and its ecosystem

Download oauth-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.cloudbees.sdk.plugins/oauth-plugin/ -->
<dependency>
    <groupId>org.cloudbees.sdk.plugins</groupId>
    <artifactId>oauth-plugin</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.cloudbees.sdk.plugins/oauth-plugin/
implementation 'org.cloudbees.sdk.plugins:oauth-plugin:1.1'
// https://jarcasting.com/artifacts/org.cloudbees.sdk.plugins/oauth-plugin/
implementation ("org.cloudbees.sdk.plugins:oauth-plugin:1.1")
'org.cloudbees.sdk.plugins:oauth-plugin:jar:1.1'
<dependency org="org.cloudbees.sdk.plugins" name="oauth-plugin" rev="1.1">
  <artifact name="oauth-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.cloudbees.sdk.plugins', module='oauth-plugin', version='1.1')
)
libraryDependencies += "org.cloudbees.sdk.plugins" % "oauth-plugin" % "1.1"
[org.cloudbees.sdk.plugins/oauth-plugin "1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.cloudbees : cloudbees-api-client jar 1.5.7
org.codehaus.jackson : jackson-mapper-asl jar 1.9.2

provided (1)

Group / Artifact Type Version
com.cloudbees.sdk : bees-api jar 1.3.5

Project Modules

There are no modules declared in this project.

What is this?

This plugin adds several oauth:* commands to CloudBees SDK command line tool to interact with the OAuth service. These commands are still in the early stage and is subject to change.

To install this plugin, run the following command from your command line:

$ bees plugin:install org.cloudbees.sdk.plugins:oauth-plugin

Run bees help to see the list of availble oauth:* commands

##Register Protected App

Protected app is an app that wants to register it's own scope. Such apps, when receive an OAuth token, verifies the token and check for it's scope and also check for other authorizations.

$ bees oauth:app:register --account CLOUDBEES_ACCOUNT_NAME --callback https://myprotectedapp.example.com/callback --grant-type client_credentials --url https://myprotectedapp.example.com -n "My Protected App” -S https://myprotectedapp.example.com/read="Allow to read your data" -S https://myprotectedapp.example.com/write="Allow to update your data"

Register client App

Client apps are the one who generate a token with desired scope and calls a protected app.

$ bees oauth:app:register --account CLOUDBEES_ACCOUNT_NAME --callback https://myprotectedapp.example.com/callback --grant-type client_credentials --url https://myprotectedapp.example.com -n "My Protected App” 

Create access token

$ bees oauth:token:create --account CLOUDBEES_ACCOUNT_NAME -clientId xxxxx -clientSecret xxxxx -scope https://myprotectedapp.example.com/read

Create refresh token

$ bees oauth:token:create --account CLOUDBEES_ACCOUNT_NAME -clientId xxxxx -clientSecret xxxxx -scope https://myprotectedapp.example.com/read -generate-refresh-token
org.cloudbees.sdk.plugins

CloudBees Community

Versions

Version
1.1
1.0