Coder Social home page Coder Social logo

ac-training-starter's Introduction

Auth Connect Training Starter

This application shows a typical structure for applications that require authentication in order to get data. The base application uses email/password for authentication.

Getting Started

  • clone this repo
  • cd ac-training-starter
  • npm i
  • npm run build
  • npx cap update - this may take a while
  • npm run build
  • npm start - to run in the browser
  • npx cap open ios

General Architecture

Services

Two services and one HTTP interceptor are related to authentication within the application.

IdentityService

The IdentityService defines the identity of the currently logged in user including the authentication token associated with the user. This service also persists the token so it is available between sessions.

AuthenticationService

The AuthenticationService handles the POSTs to the login and logout endpoints. If these operations are successful it registers this fact with the IdentityService.

Application Workflow

Upon starting up, the application attempts to load the HomePage. The HomePage displays the username of the currently logged in user. This page is not accessible if the current user is not logged in, in which case, the application navigates to the login page.

Misc Notes

Email/Password Login Credentials

To login with the base application, specify any email address with ionic as part of the email and any password with test as part of the password. Examples:

xcodebuild Error

On one machine, I kept getting the following error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

See the solution here: https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error

ac-training-starter's People

Contributors

dallastjames avatar mlynch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dallastjames

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.