GithubHelp home page GithubHelp logo

dev-hwang / flutter_bpass_lib Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 253 KB

B PASS 모바일 앱과 연동되어 사용자 인증을 수행할 수 있는 플러그인

License: MIT License

Kotlin 26.99% Ruby 6.17% Swift 20.77% Objective-C 30.29% Dart 15.79%

flutter_bpass_lib's Introduction

flutter_bpass_lib

B PASS 모바일 앱과 연동되어 사용자 인증을 수행할 수 있도록 도와주는 플러그인 입니다.

Getting Started

To use this plugin, add flutter_bpass_lib as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_bpass_lib:
    git:
      url: https://github.com/Dev-hwang/flutter_bpass_lib.git
      ref: master

🐤 Android

  1. 프로젝트의 android 폴더를 열고 아래와 같이 bpass-sdk 폴더를 생성하세요.

folder_struct

  1. bpass-dsk 폴더에 다운로드한 aar 파일을 넣고 build.gradle 파일을 작성하세요.
configurations.maybeCreate("default")
artifacts.add("default", file('BPassSDK-Android-0.6.1.aar'))
  1. settings.gradle 파일을 열어서 위에서 추가한 폴더를 include 해주세요.
include ':app', ':bpass-sdk'
  1. AndroidManifest.xml 파일을 열고 필요 권한 및 메타 데이터를 설정해주세요.
<manifest>
    <!-- 필요 권한 -->
    <uses-permission android:name="android.permission.INTERNET" />

    <application>
        <!-- 발급받은 service id 설정 -->
        <meta-data android:name="BPASS_SERVICE_ID" android:value="..." />

        <!-- 발급받은 secret key 설정 -->
        <meta-data android:name="BPASS_SECRET" android:value="..." />

        <!-- 인증 서버 도메인 설정 (개발: bauth.mykeepin.com, 운영: auth.blockchainbusan.kr) -->
        <meta-data
            android:name="BPASS_AUTH_SERVER_DOMAIN"
            android:value="auth.blockchainbusan.kr" />
    </application>
</manifest>

🐤 iOS

  1. Xcode에서 BusanKeepinSDK.framework를 추가해 주세요.

step_1

  1. Runner의 General 탭에서 BusanKeepinSDK.framework를 추가해 주세요.

step_2

  1. Runner의 Info.plist 파일을 열고 Service ID, Secret Key, URL scheme를 설정해 주세요.

step_3

  1. SP 등록 시에 부여받은 URL scheme를 설정해 주세요.

step_4

  1. 인증 서버와 통신하기 위해 아래 키를 추가해 주세요.
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
</dict>
  1. Runner의 AppDelegate.swift 파일을 열고 아래 함수를 추가해 주세요.
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
  if url.scheme == "4에서 설정한 URL Schemes" {
    BusanKeepinSDK.delegateURL(url: url)
  }

  return true
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.