https://github.com/devsecstack/jfrog-web-login-api
Integrate the 'jf login' web login command behavior to your service or CLI using JFrog undocumented Access APIs. The web login command allows you to login to the JFrog platform through a web browser, making the process interactive and user-friendly.
https://github.com/devsecstack/jfrog-web-login-api
jfrog jfrog-cli
Last synced: 10 months ago
JSON representation
Integrate the 'jf login' web login command behavior to your service or CLI using JFrog undocumented Access APIs. The web login command allows you to login to the JFrog platform through a web browser, making the process interactive and user-friendly.
- Host: GitHub
- URL: https://github.com/devsecstack/jfrog-web-login-api
- Owner: DevSecStack
- Created: 2024-11-28T19:18:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T20:46:02.000Z (about 1 year ago)
- Last Synced: 2025-01-30T16:58:16.077Z (12 months ago)
- Topics: jfrog, jfrog-cli
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Login to the JFrog Platform 🐸
Integrate the 'jf login' web login command behavior to your service or CLI using JFrog undocumented Access APIs.
The web login command allows you to login to the JFrog platform through a web browser, making the process interactive and user-friendly.
## Access REST APIs
### Base URL
The Platform REST URL is constructed of:
```
//
For example:
# Using your JFrog URL
http://artifactory.mycompany.com/access/
```
### Request Web Client Access
**Usage**: `POST api/v2/authentication/jfrog_client_login/request -H "Content-Type: application/json"`
**Consumes**: `application/json`
```
POST /api/v2/authentication/jfrog_client_login/request
{
"session": "274f11d9-9d2f-4fd3-813d-a6551c8dd916", // generated uuid
}
```
### Get Web Client Access Token
**Usage**: `GET api/v2/authentication/jfrog_client_login/token/{uuid}`
**Sample Output:**
```
{
"token_id" : "3693ad1a-fdb7-4ca4-b0d2-bed0b08b7717",
"access_token" : "****",
"refresh_token" : "ba66b7ec-c106-4b73-84b2-dba34bf4d96f",
"expires_in" : 31536000,
"scope" : "****",
"token_type" : "Bearer",
"username" : "username@mycompany.com"
}
```

