Code Monkey home page Code Monkey logo

ms-identity-python-on-behalf-of's People

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

Watchers

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

ms-identity-python-on-behalf-of's Issues

Incorrect `API_SCOPE` in `DjangoUI/production.env`

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • Follow the guide in the README.
  • Access localhost:8000 in the browser
Traceback (most recent call last):
  File "/home/taugspurger/src/msazure/redo/DjangoUI/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/taugspurger/src/msazure/redo/DjangoUI/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/taugspurger/src/msazure/redo/DjangoUI/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/taugspurger/src/msazure/redo/DjangoUI/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/taugspurger/src/msazure/redo/DjangoUI/AzureManagement/views.py", line 28, in get
    if "error" in token_response:

Exception Type: TypeError at /
Exception Value: argument of type 'NoneType' is not iterable

Mention any other details that might be useful

I think the correct API_SCOPE is API_SCOPE="api://Flask_API_Client_ID/access_as_user" (substituting the Flask_API_Client_ID) to match the name of the scope defined by the Flask API.

Manifest change incorrect tag name

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

When editing the Manifest, modify the value for accessTokenAcceptedVersion, not
acceptedTokenVersion (as stated in the README)

Any log messages given by the failure

error reported: incorrect claims, please check the audience and issuer

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

issue: Installation Documentation MacOS

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

In MacOS, cannot perform the following step 2 item


Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
. .\venv\Scripts\Activate.ps1

Even installation of pwershell does not solve the issue
PS /Users/name/dev/ms-identity-python-on-behalf-of/DjangoUI> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
Set-ExecutionPolicy: Operation is not supported on this platform.

getting the following

System check identified no issues (0 silenced).
December 13, 2021 - 03:15:03
Django version 3.1.14, using settings 'UI.development_settings'
Starting development server at http://localhost:8000/
Quit the server with CONTROL-C.
[13/Dec/2021 03:15:08] "GET / HTTP/1.1" 302 0
Creating new confidential client
[13/Dec/2021 03:15:08] "GET /account/login HTTP/1.1" 302 0
[13/Dec/2021 03:16:46] "GET /account/callback?code=0.ATcARDA-RC3oCkGLCldJhyIkHUUaCtcb7M5IqpiAf2HdZ7o3AIg.AQABAAIAAAD--DLA3VO7QrddgJg7Wevr3mdgt7mWkwMxexpRdPjJ2L3wg9A3GlU8kV1TYi2WaVBppZOHNkK1nqmwLonEACXJ9AMJadT4TqmKYHAAlPSjpl5miFqhylSwDPr_fdzC_cv54ACxSyq2wgBuiePyvohPoMbOoOyMxeo8yH3q5tJzEycC8h-r1R9yXrsqPvsq0qnY_tFXEuUlJhXT_x91gvzqPQyvaexdHUS_j1RPzO6qIlfoZ1D-LzVG2m5LvOoFGCcUJkEQ3d0gNb_rAZePnYGjvRyABgiIiqsoGSS61vfKkdQLQiHIReQEMvC2Mfd_rkTCCLHzJVzvyP26-j0ErcMJHRgMKM00cPJz1m82IV8s8sPFyRZa2vOXr6CiimZN4DaCSQjFa3H9O2DZzM2QVjsGdROFZ8wFw5Xl3s9V5Etyq8-6TBY0vXgL65n-Y5JzdUTrwhI3X1I_s9MTNqNhEseNVQ24fOnJgHg6pZXDpUGhX6vrt3XobDRhACsEZjlrgbYhnUvwlyNE73fI4JUeZSX-gJ-oMpuNnUzvHhQeTFkL96uTNZVIXQQxPG_MvBiXQvwSJFTmTmkIHHaPgHvFj0VmrLcjtVXUPuZYp9qGAixGHBIQyPcZuwZ5pam-ljz_YdifBUNxTjsMaEU_IVhhEhpwxBJocbt3fSIui37PA_fgvMhTmhChD01xnXVidUQ3mO-ZAh2KMWTlDVIzi1CG6e9d2a2qXaC2zXRI3vW0BfXWwkAFuqfOWNWvuFa08GH95tGv9BUIcqEeHwosVm6iXOwdJsNl75a7Q8ZtPxx3u346bLQVOtS3YhLQgrQ5fHB1132qUY8cH1NOThQ4oSo02cab5rkv1qOasQcn541yZIoeO88sCHPEy15r3rjHU831glu15imgm-qyU2-Z0TrrsmcZbq4Iri_Kch6nXeXMgHfeEg7iy74AYTuwkBSsSOUIjuiwKZibGZgLxuSYtvO_6XbbftjiIif4Md7UvjL4NpvoGLsNvI2oALDdDpZnDK5dJApHSVHU2ywcLD14zqK1-GshIAA&state=vLZBqUejftlkFhxD&session_state=58201279-71d5-427e-8374-c1825f18ccb7 HTTP/1.1" 302 0
/Users/user/.pyenv/versions/3.9.2/lib/python3.9/site-packages/msal/application.py:771: UserWarning: We haven't decided how/if this method will accept authority parameter
warnings.warn("We haven't decided how/if this method will accept authority parameter")

Any log messages given by the failure

Internal Server Error: /
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.9.2/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/user/.pyenv/versions/3.9.2/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/user/.pyenv/versions/3.9.2/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/user/.pyenv/versions/3.9.2/lib/python3.9/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/Users/user/dev/ms-identity-python-on-behalf-of/DjangoUI/AzureManagement/views.py", line 28, in get
if "error" in token_response:
TypeError: argument of type 'NoneType' is not iterable

Expected/desired behavior

OS and Version?

MacOS Catalina

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

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.