当前位置:网站首页>The maximum expiration time of client secret in azure ad application registration is modified to 2 years
The maximum expiration time of client secret in azure ad application registration is modified to 2 years
2022-07-04 04:00:00 【Justin-Liu】
When our application is used as a confidential client , Credentials are an important part of application registration . We can add certificates and / Or client key ( character string , Also known as passwordCredentials) Credentials registered as confidential client applications .OAuth Client Authenticate the authorization server using application credentials . This key has only OAuth The client and the authorization server know .
Why remove the never expire option for keys ?
In fact, Microsoft has long been 2021 year 4 The month was removed Azure AD Application registration never expires (Never Expire) This option , This decision is mainly based on the following reasons :
- Long life-cycle client keys pose security risks . Although they provide the convenience of credentials that never expire , But this exposure of unmonitored credentials may not be discovered , And may be abused by malicious participants .
- Selecting a client key that never expires is actually from the date of creation , Valid for 99 year . Although it gives the impression that the certificate has a long life , But its validity period is set to 99 year .
- The user experience of the client key is also inconsistent , because Expires The date shown in the list is marked with Never label .
- Mixed representations can lead to API Response and UI atypism . adopt API The returned data has an expiration date of the customer key , And expressed by date value 99 Expiration date of year .
- Multiple applications use the same long-standing key , If the client key is compromised , Then all applications will face risks . Unless actively monitored , Otherwise, the developer may never realize him / Another application in her tenant was hacked , Because their application will never be interrupted .
- Microsoft strongly recommends , All client keys rotate every six months , To ensure the security of applications and processes . There are too many cases where keys are stored in insecure storage locations .

Why is the existing permanent key no longer in Never As the expiration date ?
For existing long-term keys ,UI The exact expiration date can now be displayed ( Format :MM/DD/YYYY) instead of Never, To increase transparency . Although the portal provides a choice Never The option to , But those keys that never expire are set from the date of creation 99 Year term . The previously created value is Never The client key of is set as of the creation date 99 Expires in years .UI Now show the exact date ( Such as 2119/01/02) Not keywords Never, To increase transparency . It also brings data from Microsoft Graph The response of the application is consistent . however , Before the expected expiration date , This will not affect the use of these client keys . As best practice , Microsoft strongly recommends that customers avoid using client keys with long expiration time stamps in production environments .
What is Microsoft's recommendation for client keys ?
Microsoft strongly recommends that you use a certificate issued by a trusted certification authority x509 The certificate is the only credential type for your application to obtain tokens . Monitor your production pipeline , To ensure that no type of credentials are submitted to the code repository . If you are using Azure, Microsoft strongly recommends using managed authentication (Managed Identity), In this way, the credentials of the application will be automatically managed . For more details , see also Hosting authentication documents .
If you have to use a client key , Microsoft recommends that you set the secret expiration time to 6 Months . When processing application documents , Please consider these other Suggest . Microsoft also offers Credential Scanner, This is a static analysis tool , You can use it to detect credentials in the source code ( And other sensitive content ) And build the output .
The plan and vision of the client key is to make API Consistent with the portal experience , That is, the maximum service life is allowed to be two years . Microsoft will announce these changes through various channels , Such as Azure AD Breakthrough changes and Azure Monthly Roadmap . Now? , If you want a long-term key , You can use Microsoft Graph API or PowerShell cmdlet To set a key that is valid for more than two years . We will delete this option later , To better protect Azure AD All applications in . When the , All new keys will be limited to a maximum period of two years .
The resources
application: addPassword – Microsoft Graph beta | Microsoft Docs
New-AzureADApplicationPasswordCredential (AzureAD) | Microsoft Docs
边栏推荐
- Nbear introduction and use diagram
- Don't disagree, this is the most powerful "language" of the Internet
- Management and thesis of job management system based on SSM
- 基于PHP的轻量企业销售管理系统
- [book club issue 13] packaging format of video files
- SQL語句加强練習(MySQL8.0為例)
- CSP drawing
- Consul of distributed service registration discovery and unified configuration management
- 支持首次触发的 Go Ticker
- Formulaire day05
猜你喜欢

Add IDM to Google browser

Exercices de renforcement des déclarations SQL (MySQL 8.0 par exemple)
![Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure](/img/ba/c1d40de154344ccc9f2fd1dd4cb12f.png)
Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure

Why is it recommended that technologists write blogs?
![[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush](/img/98/3e5f1094141e34d7e77f908e12acda.jpg)
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush

用于TCP协议交互的TCPClientDemo

Mindmanager2022 efficient and easy to use office mind map MindManager

Leetcode51.n queen

Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
![[untitled]](/img/b5/bf76783aa428222623d760756a14d9.jpg)
[untitled]
随机推荐
如何有效远程办公之我见 | 社区征文
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
Huawei cloud Kunpeng engineer training (Guangxi University)
[PaddleSeg 源码阅读] PaddleSeg 自定义数据类
The new data center helps speed up the construction of a digital economy with data as a key element
Support the first triggered go ticker
MySQL maxscale realizes read-write separation
拼夕夕二面:说说布隆过滤器与布谷鸟过滤器?应用场景?我懵了。。
CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构
深度优先搜索简要讲解(附带基础题)
Formulaire day05
MySQL backup notes
Redis notes (I) Linux installation process of redis
[paddleseg source code reading] paddleseg custom data class
Summary of Chinese remainder theorem
system information
Slurm view node configuration information
Nbear introduction and use diagram
【.NET+MQTT】.NET6 環境下實現MQTT通信,以及服務端、客戶端的雙邊消息訂閱與發布的代碼演示
Add IDM to Google browser