Commands for OAuth service

'bees' command and its ecosystem

Лицензия

Лицензия

Группа

Группа

org.cloudbees.sdk.plugins
Идентификатор

Идентификатор

oauth-plugin
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Commands for OAuth service
'bees' command and its ecosystem

Скачать oauth-plugin

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.cloudbees : cloudbees-api-client jar 1.5.7
org.codehaus.jackson : jackson-mapper-asl jar 1.9.2

provided (1)

Идентификатор библиотеки Тип Версия
com.cloudbees.sdk : bees-api jar 1.3.5

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.1
1.0