คำถามติดแท็ก micronaut-aws

1
การรับชื่อผู้ใช้พูลผู้ใช้ cognito จาก identityito identity pool
ฉันใช้ AWS Congito User Pools สำหรับการจัดการบัญชีด้วย Cognito Identity Pool ที่มี User Pool เป็นผู้ให้บริการข้อมูลประจำตัว ฉันใช้สิ่งนี้เพื่อควบคุมการเข้าถึง API ผ่าน API Gateway ที่ส่งคำขอไปยัง Lambda My Lambda ใช้งานกับ Java 8 โดยใช้ Micronaut ทั้งหมดนี้ทำงานได้ดี ในแลมบ์ดา, ฉันได้รับชื่อจากPrincipalในHttpRequest: protected String resolveUser( HttpRequest request ){ String ret = null; Optional<Principal> principal = request.getUserPrincipal(); if( principal.isPresent() ){ ret = principal.get().getName(); …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.