Skip to content

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.

Notifications You must be signed in to change notification settings

DevSecStack/jfrog-web-login-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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:

<JFrog URL>/<Service Context>/

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"
}

image image

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages