Giter VIP home page Giter VIP logo

vue-msal-sample's People

Contributors

sunilbandla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-msal-sample's Issues

UserAgentApplication return null

I tried this sample using my own app registration, I changed the clientId then I can't login at all. The user return empty. I think the problem is in my app registration on Azure AD (I don't use AD B2C). Is there anything that I should set on the configuration? This my current configuration on Authentication:

image

App is not passing the clientID

Hi Sunil, thanks for creating this sample and making our lives easy. I'm having this issue when I try to sign in to Microsoft, I'm getting the error message below. Everything is the same as far as the code is a concern, no idea why I keep on getting the error.
Screen Shot 2020-05-12 at 12 04 48 PM

-----AuthService Code-----
export default class AuthService {
constructor() {
let redirectUri = window.location.origin;

this.applicationConfig = {
  clientID: 'my client id from AzureAD',
  graphScopes: ['user.read'],
};

this.app = new Msal.UserAgentApplication(
  this.applicationConfig.clientID,
  '',
  () => {
    // callback for login redirect
  },
  {
    redirectUri,
  }
);

}

Thanks in advance.

Popup doesn't close if the history mode is not on

Sunil - thanks for building a great example. I had tried some other vue npms and samples nothing worked except yours for MSAL. I hope this question is for real since the last two from me turned out to have answers in the services

The code works fine. But when I move the code to production which doesn't support the history mode i.e. my production url has a # in it, it doesn't close the popup. I can see that authorization has happened and I can see tokens in popup window url has well. I unfortunately cannot turn off the # in the production url because that is how the client wants it. Is there a way to handle this scenario?

gran permission

Hi Sunilbandla,

I have a question/problem

I follow your code and everything is fine. I have tested on https://sunilbandla.github.io/vue-msal-sample/ using a corporative account and logs in perfect ([email protected]), but when I try to log in in my web app(localhost) I get this error:

You can't access this application
XimbusTesting needs permission to access resources in your organisation that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

Do you know what is the problem? How/Where did you create your App ID to working with microsoft corporative accounts?

(I tested using apps.dev.microsoft.com with "Allow Implicit Flow: True", and I have tried with Azure Active Directory)

I will appreciate it so much.

Thanks in advance.

grant_permission

How to get access_token?

Hi Sunil,

I am seeing the id_token but no the access_token in my response. How do I go about it?

Thanks!

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.