Giter Club home page Giter Club logo

vitalybibikov / azureextensions.functiontoken Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 5.0 57 KB

Extension Attribute to Azure Functions v3, that allows to obtain ClaimsPrincipal on every request. Currently supports key load from Azure B2C by jwks_uri and simple JsonWebKey. Pluggable on Azure Function Startup

Home Page: https://www.nuget.org/packages/AzureExtensions.FunctionToken/

License: Apache License 2.0

C# 100.00%
azure azure-functions azureb2c claimsprincipal webjobs authentication input-binding oidc firebase firebase-auth

azureextensions.functiontoken's People

Contributors

dependabot[bot] avatar jtone123 avatar vitalybibikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

azureextensions.functiontoken's Issues

Error when using B2C integration (inc. Example). Can't load Microsoft.IdentityModel.Tokens

Simple to reproduce - just use the example Function App with TokenAzureB2COptions and results in error:

Exception while executing function: GetUser. AzureExtensions.FunctionToken: Could not load file or assembly 'Microsoft.IdentityModel.Tokens, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

Here is my startup code for B2C (albeit with altered uris)...

builder.AddAzureFunctionsToken(new TokenAzureB2COptions()
{
    AzureB2CSingingKeyUri = new Uri("https://myidp.b2clogin.com/myidp.onmicrosoft.com/discovery/v2.0/keys?p=B2C_1_policy"),
    Audience = "https://myidp.onmicrosoft.com/98d8e0a8-8713-4bb7-8247-82010affa1d1",
    Issuer = "https://myidp.onmicrosoft.com/2351f626-3e64-46bf-baf8-d5096f3b5261/v2.0/"
});

The above is using the Nuget package...
<PackageReference Include="AzureExtensions.FunctionToken" Version="1.0.11" />

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.