Giter Site home page Giter Site logo

easyauth-demo's Introduction

EasyAuth Setup With Private Endpoint

The purpose of this project is to provide a baseline bicep and JAVA function example that has a private endpoint connection to both the function and the key vault with easyauth turned on.

Alt text

Application Registration Setup

To enable EasyAuth through the bicep templates in this project please follow the steps below.

  1. Navigate to Azure Application Registrations Alt text

  2. Create a new application Registration and take note of the Application (client) ID Alt text Alt text

  3. Enable ID Tokens on the Authentications tab Alt text

  4. Set the Application ID URI Alt text

To create a service that can call the function utilizing an access token please follow the steps below.

  1. Create a new application Registration and take note of the Application (client) ID Alt text Alt text

  2. Create an application secret. Alt text

At this point all service can call this function. To restrict access to specific users and services please follow the steps below.

  1. Navigate to Enterprise applications and select the application registration created in step 1 for the EasyAuth function.
    Alt text

  2. On the properties pain set Assignment required to yes.
    Alt text

  3. Navigate back to Application registrations that aligns to the function and select the application created in step 1 for the EasyAuth function. Then navigate to App Roles and create a new application role for both (Users/Groups + Applications)
    Alt text

  4. Navigate to Application that aligns to the application calling the function and select API permissions and add a permission.
    Alt text

  5. Select My APIs and chose the API and scope from the list.
    Alt text

  6. Select the scope that aligns with the role in step 3.
    Alt text

  7. Grant admin consent.
    Alt text

IaC Code

Additional Resources

easyauth-demo's People

Contributors

petemessina avatar

Watchers

 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.