패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.3

okta_oidc

Okta OIDC 인증을 위한 플러터 플러그인은 Okta 서비스와 OpenID Connect를 사용하여 안전한 사용자 로그인, 토큰 관리 및 신원 통합을 가능하게 합니다.

AndroidiOS
30일 다운로드
3.2천
좋아요
7
Pub 점수
140

패키지 설치

flutter pub add okta_oidc

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

okta_oidc 패키지는 Okta 서비스와 OpenID Connect를 사용하여 안전한 인증을 가능하게 하는 플러터 플러그인입니다. Android 및 iOS 플랫폼에서 원활한 사용자 로그인, 토큰 관리 및 신원 통합을 지원합니다. Okta의 신원 솔루션을 플러터 앱에 통합하는 개발자를 위해 설계되었으며, OAuth 2.0 흐름, 토큰 저장 및 세션 관리를 안전하게 처리합니다. 이 플러그인은 현대적인 인증 워크플로우 구현을 간소화하며 산업 표준 준수를 보장합니다. 특히 강력한 신원 검증과 접근 제어가 필요한 기업용 애플리케이션에서 특히 유용합니다.

사용 사례

  • 기업 앱 인증
  • 단일 로그인(Single Sign-On, SSO) 통합
  • Okta를 사용한 보안 사용자 로그인
  • 토큰 기반 인가
  • 모바일 앱 식별 관리

주요 기능

  • OpenID Connect 지원
  • 보안 토큰 처리
  • 크로스 플랫폼(안드로이드 및 iOS)
  • Okta 서비스 통합
  • 세션 관리

적합한 대상

  • 기업 모바일 애플리케이션
  • SSO가 필요한 앱
  • Okta 신원 서비스를 사용하는 개발자
  • 인증 중심 앱
  • 보안 로그인을 필요로 하는 플러터 앱

고려 사항

  • Okta 계정 설정이 필요합니다
  • 올바른 리디렉션 URI 구성이 필요합니다
  • 플랫폼 고유의 OAuth 처리에 의존합니다
  • Okta OIDC 공급자에 한정
  • 추가 백엔드 검증이 필요할 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

okta_oidc

okta_oidc provide simple authentication integration in mobile apps.

Sample

Check out sample app Okta oidc

Installation

To add okta_oidc to your flutter application install instructions. Below are some Android and iOS specifics that are required for the okta_oidc to work correctly.

Android
  1. Make sure you set the minSdkVersion 21 or above in your "android/app/build.gradle"
android {
  minSdkVersion 21

  ...
}
  1. Similar to the sample app, you must add a redirect scheme to receive sign in results from the web browser. To do this, you must define a gradle manifest placeholder in your app's build.gradle:
manifestPlaceholders = [
    appAuthRedirectScheme: 'Add redirect schema here...'
  ]
iOS
  1. Make sure the minimum deployment target in Podfile set to 13 or above
platform :ios, '13.0'

Add `assets/okta_config.json` file in root of your project with below data.
{
  "client_id": "",
  "redirect_uri": "",
  "end_session_redirect_uri": "",
  "scopes": [],
  "discovery_uri": ""
}

Example

Available Methods
initOkta

This method will initialize okta with config file or map data.

code
OktaOidc oktaOidc = OktaOidc();

...
...

 Future<void> initOkta() async {
    final String response =
        await rootBundle.loadString('assets/okta_config.json');
    Map<String, dynamic>? oktaConfig = jsonDecode(response);
    oktaOidc.initOkta(oktaConfig);
  }
login

This method will redirect you to okta sign in page and return response or error.

code
 oktaOidc.login().then((value) {
                }).catchError((onError) {
                });
socialLogin

This method can be used for social login like linked in, google and apple sign in. Need to provide idp and idp-scope for social sign in.

code
  oktaOidc.socialLogin({
      "idp": "Add idp here...",
      "idp-scope": "Add scope here..."
    }).then((value) {
    });
getAccessToken

This method will return access token if logged in if token is expired it will refresh the token.

code
  oktaOidc.getAccessToken();
getUserProfile

This method returns user profile data.

code
  oktaOidc.getUserProfile();
logout

This method clears the user session.

code
  oktaOidc.logout();

카테고리

의존성

의존성 목록 1 개

  • plugin_platform_interface^2.0.2

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.