해당 문제를 Auth0/Lock 지원으로 지적한 후에도 해결책을 찾았습니다.
Lock
.classic()
.withOptions {
$0.scope = "openid profile"
$0.oidcConformant = true
$0.logHttpRequest = true
}
.withStyle {
$0.title = "App Name"
}
.onAuth { credentials in
print("successful login")
}
.onError { error in
print("Failed with error \(error)")
}
.present(from: self)
대신 웹 로그인 :
Auth0
.webAuth()
.audience("https://alienbash.eu.auth0.com/userinfo")
.start {
switch $0 {
case .failure(let error):
// Handle the error
print("Error: \(error)")
case .success(let credentials):
// Do something with credentials e.g.: save them.
// Auth0 will automatically dismiss the hosted login page
print("Credentials: \(credentials)")
}
}
하나가 "Grant_Type"변경할 수 있는지 확인해야하는 일부 VC 내부의 잠금 클라이언트를 사용하는 경우 : 어쩌면이 같은 문제를 가진 사람들을 도움 Auth0 클라이언트 설정은 또한 "암호"허용을 허용합니다. 그렇게하기 위해서는, 당신의 Auth0 클라이언트에서 이동 :
Settings --> Advances Settings --> Grant Types
및 잠금 ""새 Auth0 클라이언트를 생성하고 사용시 불가피 할 때이 체크 표시가 기본적으로 선택 될 때 비밀번호 "를 확인해야합니다 클라이언트.