Coder Social home page Coder Social logo

msal-for-objc-pod's Introduction

MSAL

CI Status Version License Platform

Current Pod Trunked Version

0.2.3

Example

To run/configure the wrapper project, clone the repo, and run pod install from the Example directory first. Branch it, sugar it and make it better.

Usage

In order to get refresh token out, please use:

#import <MSALPublicRTApplication.h> 

MSALPublicRTApplication *client = [[MSALPublicRTApplication alloc] initWithClientId:CLIENT_ID error:&error];

... do the supported authorization ...

NSLog([client getRefreshToken])

Only the following methods are supported with an refresh token

  1. acquireTokenForScopes(scopes, completionBlock)
  2. acquireTokenForScopes(scopes, loginHint, uiBehavior, extraQueryParameters, completionBlock)
  3. acquireTokenSilentForScopes(scopes, user, authority, completionBlock)
  4. acquireTokenSilentForScopes(scopes, user, authority, forceRefresh, correlationId, completionBlock)

Requirements

Note: This is configured to pull automatically from the official MSAL repo (at the time of speaking 0.1.1). Tests are not implemented in this pod as the original source code is expected to be thoroughly tested by the MS team. This pod uses spec.prepare_command to automatically parse the git submodule from official MSAL repo for the latest code.

However, any code relates to 'mac' is currently ignored by this configuration.

Important

The official MSAL is still at its preview phase, subject to change anytime. It is important to check against any version change after 0.1.1, to see if there are any major changes to the file structure which will affect the install/build of the pod into a client project. Development usage should very much follow how it is used on the official MSAL repo/documentation.

Client Project Installation

MSAL is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MSAL"

Alternatively, modify the Podfile or using command line to add MSAL pod using directly the git repo url.

Pod Update

When podspec, wrapper logic, or the source MSAL files have been changed, it is important to pod check the pod, tag it and push to the pod trunk.

  • after modification, commit
  • modify the podspec, with the new spec number, e.g. 0.2.3, make sure it is newer than the current one on "http://cocoapods.org/pods/MSAL"
  • 'git tag 0.2.3 && git push origin --tags'
  • 'pod spec lint'
  • 'pod trunk push' <-- this requires the repo url to be accessible in public to allow cocoapods to pull the pod from

Author

shuurai, [email protected]

License

MSAL is available under the MIT license. See the LICENSE file for more info.

msal-for-objc-pod's People

Contributors

shuurai avatar

Watchers

 avatar  avatar

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.