Skip to content

How to authenticate with AAD access token #476

Answered by Wwwsylvia
PSanetra asked this question in Q&A
Discussion options

You must be logged in to vote

Sadly that function does not seem to be exposed as the authenticationClient struct is package private

Ohhh indeed it is private🫤. It looks like you have to implement the exchange logic on your own since it is out of the scopes of oras-go.
Currently the ACR doc and the ExchangeAADAccessTokenForACRRefreshToken function are the only references that I'm aware of.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PSanetra
Comment options

@Wwwsylvia
Comment options

Answer selected by PSanetra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants