{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/Lock.Android/issues/509","repository_url":"https://api.github.com/repos/auth0/Lock.Android","labels_url":"https://api.github.com/repos/auth0/Lock.Android/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/auth0/Lock.Android/issues/509/comments","events_url":"https://api.github.com/repos/auth0/Lock.Android/issues/509/events","html_url":"https://github.com/auth0/Lock.Android/issues/509","id":380662749,"node_id":"MDU6SXNzdWUzODA2NjI3NDk=","number":509,"title":"Lock.Android - Database Connection Sign Up / Login with Scope Issue","user":{"login":"KetanPCoditas","id":39261072,"node_id":"MDQ6VXNlcjM5MjYxMDcy","avatar_url":"https://avatars0.githubusercontent.com/u/39261072?v=4","gravatar_id":"","url":"https://api.github.com/users/KetanPCoditas","html_url":"https://github.com/KetanPCoditas","followers_url":"https://api.github.com/users/KetanPCoditas/followers","following_url":"https://api.github.com/users/KetanPCoditas/following{/other_user}","gists_url":"https://api.github.com/users/KetanPCoditas/gists{/gist_id}","starred_url":"https://api.github.com/users/KetanPCoditas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KetanPCoditas/subscriptions","organizations_url":"https://api.github.com/users/KetanPCoditas/orgs","repos_url":"https://api.github.com/users/KetanPCoditas/repos","events_url":"https://api.github.com/users/KetanPCoditas/events{/privacy}","received_events_url":"https://api.github.com/users/KetanPCoditas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T11:49:30Z","updated_at":"2018-11-14T15:21:40Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nI am using Lock.Android SDK for SignUp/Login with Social and Database Connections options provided by Auth0. With Social Connection, if I set **Scope \"openid profile name email nickname offline_access\"** in SCOPE_VALUE with builder.withScope(SCOPE_VALUE) with  **Audience: \"https://[MY_DOMAIN]\"/api/v2/\"** then it works perfectly but when I try with Database connection (Email + Password with Auth0 Database - Not using custom database) with same scope and audience, it gives me an error as stated below:\r\n\r\n**_{\"error\":\"invalid_scope\",\"error_description\":\"User is not authorized to the audience for those scopes\"}_**\r\n\r\nApart from this, If I get succeeded to sign up using Database connection with whatever scope, will I able to get **AccessToken and RefreshToken in AuthenticationCallback - onAuthentication (Credentials)**?\r\n\r\nThanks,\r\nKetan"},"comment":{"url":"https://api.github.com/repos/auth0/Lock.Android/issues/comments/438699769","html_url":"https://github.com/auth0/Lock.Android/issues/509#issuecomment-438699769","issue_url":"https://api.github.com/repos/auth0/Lock.Android/issues/509","id":438699769,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY5OTc2OQ==","user":{"login":"lbalmaceda","id":3900123,"node_id":"MDQ6VXNlcjM5MDAxMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/3900123?v=4","gravatar_id":"","url":"https://api.github.com/users/lbalmaceda","html_url":"https://github.com/lbalmaceda","followers_url":"https://api.github.com/users/lbalmaceda/followers","following_url":"https://api.github.com/users/lbalmaceda/following{/other_user}","gists_url":"https://api.github.com/users/lbalmaceda/gists{/gist_id}","starred_url":"https://api.github.com/users/lbalmaceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbalmaceda/subscriptions","organizations_url":"https://api.github.com/users/lbalmaceda/orgs","repos_url":"https://api.github.com/users/lbalmaceda/repos","events_url":"https://api.github.com/users/lbalmaceda/events{/privacy}","received_events_url":"https://api.github.com/users/lbalmaceda/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T15:21:40Z","updated_at":"2018-11-14T15:21:40Z","author_association":"CONTRIBUTOR","body":"The first one sounds like it should work. Are you using OIDC conformant mode set to true? It's explained [here](https://github.com/auth0/Lock.Android#oidc-conformant-mode).\r\n\r\nFor the second question, Lock's \"sign up\" tab does a `create user + log in` (2 requests in total). You will always obtain an access token, but for the refresh token to be present you must include the `offline_access` value in the scope as you're doing in the first question."}}
{"actor":{"display_login":"lbalmaceda"}}