Giter VIP home page Giter VIP logo

authgear-sdk-ios's People

Contributors

axolotl0212 avatar boburmirzo avatar carmenlau avatar inizio avatar kiootic avatar louischan-oursky avatar nicolaslee2775 avatar peter-chengtsztung avatar roxk avatar stanleylhs avatar tung2744 avatar

Stargazers

 avatar

Watchers

 avatar

authgear-sdk-ios's Issues

Unify API

Keep authgearSessionStateDidChange only

Support reauthentication (iOS SDK)

  • Do not add prompt=login to example
  • Store id token
  • Add getIDTokenHint
  • Expose refreshIDToken
  • Add canReauthenticate
  • Add getAuthTime
  • Add reauthenticate
  • Update example to show how to use reauthentication

[iOS SDK] Investigate why Github CI fail

Fails before the lint and build started

  sudo xcode-select -s /Applications/Xcode_11.app/Contents/Developer
  shell: /bin/bash -e {0}
xcode-select: error: invalid developer directory '/Applications/Xcode_11.app/Contents/Developer'

Screenshot 2020-11-12 at 7 04 28 PM

[Demo app, Biometric] Typo in the "Face ID permission denied" error message

Describe the bug
The "Face ID permission denied" error message is If the developer should performed checking, then it is likely that you have denied the permission of Face ID., which is confusing to users.

Authgear Version

  • Version: Staging

To Reproduce
Steps to reproduce the behavior:

  1. Log in to the app project portal on iOS devices with added biometric features
  2. Deny the app request for the Biometric permission
  3. Enable biometric
  4. See the confusing error message

Expected behavior
Should show clear error messages about the missing access permission for Biometrics features (biometric features can be fingerprint but not Face ID)

Screenshots
IMG_1124 1

Client Env (if applicable, please complete the following information):

  • Device: Samsung s21 FE, iPhone 11 Pro
  • OS: win 11, Android 12, iOS 16
  • Browser: Chrome
  • Browser Version: 108.0.5359.99

Add Demo App

  • Demonstrate usage of all basic authgear API
    • authorize
    • logout
    • authenticate anonymously
    • promote user
    • open url
  • show basic authgear config
    • client id
    • authgear endpoint
  • show obtained user info
    • access token
    • is anonymous (get from claim)
    • user name (get from claim)

[iOS SDK] Support auto-focus input to show keyboard

When programmatically focus an input field after a navigation event,
By default webkit would not show the keyboard on screen.

There is a workaround (becomeFirstResponder on viewDidAppear) would work on iOS16.

Todo: Support iOS16 but not older iOS versions

Find alternative of ASWebAuthenticationSession

If we use ASWebAuthenticationSession, there will be an alert with message{appName} want to use {domain} to sign in ..., some customers might not want the alert. Hence we want an alternative way to complete auth with Authgear web UI.

We want the new solution to be able to handle callback from Authgear server

Make SDK offline first

ref authgear/authgear-server#1049

  • configure can be called more than once.
  • configure does NOT do network IO.
  • configure does local file IO.
  • Refresh access token lazily.
  • API to support developer calling their app server with access token
    • authgear.refreshTokenIfNeeded() developer should call it before every api call to ensure access token up to date
    • authgear.accessToken get the access token from authgear SDK and inject into their application request
    • authgear.clearSessionState() allow developer to clear SDK logged in state, when they find user session is invalid

WeChat integration

Provide delegate for developer to call WeChat SDK when user click login with wechat

Support app2app in ios

  • Support App2AppOptions in constructor (1)

  • Modify finishAuthentication to pass x_app2app_device_key_jwt during token exchange (2)

    • Generate and store device key in keychain
    • Only pass this parameter if App2AppOptions is not null
      - [ ] Modify refreshAccessToken to pass x_app2app_device_key_jwt during refresh (1)
      - Only pass this parameter if App2AppOptions is not null
  • Implement method startApp2AppAuthentication(authorizationEndpoint: String, redirectURI: string)

    • Open authorizationEndpoint with code challenge. Enforce using universal link (2)
  • Implement method approveApp2AppAuthenticationRequest(request: App2AppAuthenticationRequest)

    • Call token endpoint using grant_type=urn:authgear:params:oauth:grant-type:app2app with proper jwt (1)
    • Open redirect_uri with code. Enforce using universal link
  • Implement method rejectApp2AppAuthenticationRequest(request: App2AppAuthenticationRequest, error: Error)

  • Implement parseApp2AppAuthenticationRequest

    • Parse url to obtain client_id redirect_uri code_challenge (1)
  • Implement method handleApp2AppAuthenticationResult(uri: Uri)

    • Do all things we did in finishAuthentication (2)
  • Use secure enclave if possible

  • Implement app2app in exmaple app (3)

portal: Logo would flicker when switching tab

Video tested on chromium edge 87.0.664.75 windows

Testing on chrome 87.0.4280.141 windows it doesn't seem like a full page load but a loading bar is shown ๐Ÿค”

Authgear.and.7.more.pages.-.Personal.2.-.Microsoft.Edge.2021-01-11.16-27-11.mp4

Add prompt="login" in authorize

Current behavior is that logging out only revoke the refresh token, but the user session in the web is still valid. After a user log out, and login again, since the session in the web view is still valid, the web view would redirect the user to redirect uri directly without user inputting anything. This is undesirable if user really wants to login with another account.

Adding prompt="login" is the oauth way to suppress the auto-redirect behavior and allow authorization with another account.

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.