access_token not added as claim on the ClaimsIdentity after login to asp.net app

The embedded lock instructions no longer exist…

https://auth0.com/docs/quickstart/webapp/aspnet-core/02-login-embedded-lock

   var lock = new Auth0Lock('@Model.ClientId', '@Model.Domain', {
                      container: 'root',
                      socialButtonStyle: 'small',
                    auth: {
                      redirectUrl: '@Model.CallbackUrl',
                      responseType: 'code',
                      params: {
                        scope: 'openid name picture email type roles',  // Learn about scopes: https://auth0.com/docs/scopes
                        audience: 'http://localhost:1181/',
                        state: '@Model.State' ,
                        nonce: '@Model.Nonce'
                      }
                    },
                    theme: {
                        backgroundColor: '#ffffff',
                        logo: '@Model.LoginLogoURL',
                        primaryColor: '#34b889'
                    },
                    languageDictionary: {
                        emailInputPlaceholder: "something@youremail.com",
                        title: ""
                    },
                  });

                lock.show();

I get an error with the above code -

OpenIdConnectProtocolException: Message contains error: 'access_denied', error_description: 'Service not found: http://localhost:1181/', error_uri: 'error_uri is null'.
Unknown location

I looked at this URL

and then here

Basically it doesn’t tell me much about this Audience thing. Is it the URL for my API? The API from here?

The documentation seems really scattered. Although my knowledge of oAuth is limited, I don’t feel like it should be this complicated.

I do feel like I’m getting to understand this - but kind of the point was I didn’t have to understand it and Im gonna pay Auth0 to understand it for me :slight_smile:

This is really really frustrating.