当前位置:网站首页>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
边栏推荐
- Value transfer communication between components (parent to child, child to parent, brother component to value)
- 深度优先搜索简要讲解(附带基础题)
- 函数计算异步任务能力介绍 - 任务触发去重
- Objective C attribute keyword
- Support the first triggered go ticker
- Zlmediakit compilation and webrtc push-pull flow testing
- JDBC 进阶
- Which product is better if you want to go abroad to insure Xinguan?
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- PostgreSQL users cannot create table configurations by themselves
猜你喜欢

MySQL maxscale realizes read-write separation

1289_ Implementation analysis of vtask suspend() interface in FreeRTOS

Detailed explanation of PPTC self recovery fuse

Katalon框架测试web(二十六)自动发邮件
![[PaddleSeg 源码阅读] PaddleSeg 自定义数据类](/img/88/37c535b371486db545abc392a685af.png)
[PaddleSeg 源码阅读] PaddleSeg 自定义数据类

Add IDM to Google browser

MySQL one master multiple slaves + linear replication

Package details_ Four access control characters_ Two details of protected

ctf-pikachu-CSRF
![[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
随机推荐
Katalon框架测试web(二十一)获取元素属性断言
Audio and video technology development weekly | 232
Graduation summary
STM32 external DHT11 display temperature and humidity
How about the ratings of 2022 Spring Festival Gala in all provinces? Map analysis helps you show clearly!
2022-07-03: there are 0 and 1 in the array. Be sure to flip an interval. Flip: 0 becomes 1, 1 becomes 0. What is the maximum number of 1 after turning? From little red book. 3.13 written examination.
EV6 helps the product matrix, and Kia is making efforts in the high-end market. The global sales target in 2022 is 3.15 million?
SDP中的SPA
[book club issue 13] multimedia processing tool ffmpeg tool set
'2'>' 10'==true? How does JS perform implicit type conversion?
Huawei cloud Kunpeng engineer training (Guangxi University)
三年进账35.31亿,这个江西老表要IPO了
潘多拉 IOT 开发板学习(HAL 库)—— 实验6 独立看门狗实验(学习笔记)
Infiltration practice guest account mimikatz sunflower SQL rights lifting offline decryption
Why is it recommended that technologists write blogs?
Spa in SDP
Leecode 122. Zuijia timing of buying and selling stocks ②
"Implement both software and hardware" to help build a new cloud computing data center
Go 语言入门很简单:Go 实现凯撒密码
Day05 錶格