none
Using ServicePrinciple

    Question

  • Hi ,

    Have created app using certificate like :

    azure ad sp create -n exampleapp7 --cert-value <base64encoded certificate data>


    First issue : Could not login 

    <style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} span.s2 {font-variant-ligatures: no-common-ligatures; color: #34bd26} span.s3 {font-variant-ligatures: no-common-ligatures; color: #c33720} </style>

    azure login --service-principal --tenant <>  -u appid --certificate-file examplecert.pem --thumbprint EFF8C0E80EFB5BCB751A2C7271AE6771B1****

    info:    Executing command login

    + Authenticating...                                                            

    error:   Unable to acquire token due to error: Get Token request returned http error: 401 and server response: {"error":"invalid_client","error_description":"AADSTS70002: Error validating credentials. AADSTS50012: Client assertion audience claim does not match Realm issuer.\r\nTrace ID: 99563eff-9d7e-46fb-aeef-76721c0e0c00\r\nCorrelation ID: f5abecda-3f42-4a11-af47-8619c5c56825\r\nTimestamp: 2017-04-12 03:58:05Z","error_codes":[70002,50012],"timestamp":"2017-04-12 03:58:05Z","trace_id":"99563eff-9d7e-46fb-aeef-76721c0e0c00","correlation_id":"f5abecda-3f42-4a11-af47-8619c5c56825"}

    error:   Error information has been recorded to /Users/.azure/azure.err

    error:   login command failed

    2nd issue :

    could not find relevant code in Python SDK to authenticate using certificate 

    any idea ?


    <style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} </style><style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Helvetica Neue'; color: #24292d} span.s1 {font-kerning: none} </style>
    Wednesday, April 12, 2017 4:59 PM

All replies