a
This commit is contained in:
+199
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using BestHTTP.WebSocket;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Authentication
|
||||
{
|
||||
// Token: 0x020018F7 RID: 6391
|
||||
[Token(Token = "0x20018F7")]
|
||||
public sealed class DefaultAccessTokenAuthenticator : IAuthenticationProvider
|
||||
{
|
||||
// Token: 0x170017F4 RID: 6132
|
||||
// (get) Token: 0x06009650 RID: 38480 RVA: 0x001EEB3C File Offset: 0x001ECD3C
|
||||
[Token(Token = "0x170017F4")]
|
||||
public bool IsPreAuthRequired
|
||||
{
|
||||
[Token(Token = "0x6009650")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "4")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000CA RID: 202
|
||||
// (add) Token: 0x06009651 RID: 38481 RVA: 0x001EEB4C File Offset: 0x001ECD4C
|
||||
// (remove) Token: 0x06009652 RID: 38482 RVA: 0x001EEB74 File Offset: 0x001ECD74
|
||||
[Token(Token = "0x140000CA")]
|
||||
public event OnAuthenticationSuccededDelegate OnAuthenticationSucceded
|
||||
{
|
||||
[Token(Token = "0x6009651")]
|
||||
[Address(RVA = "0x1C346C0", Offset = "0x1C334C0", VA = "0x181C346C0", Slot = "5")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Combine(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x6009652")]
|
||||
[Address(RVA = "0x1C34800", Offset = "0x1C33600", VA = "0x181C34800", Slot = "6")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Remove(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000CB RID: 203
|
||||
// (add) Token: 0x06009653 RID: 38483 RVA: 0x001EEB9C File Offset: 0x001ECD9C
|
||||
// (remove) Token: 0x06009654 RID: 38484 RVA: 0x001EEBC4 File Offset: 0x001ECDC4
|
||||
[Token(Token = "0x140000CB")]
|
||||
public event OnAuthenticationFailedDelegate OnAuthenticationFailed
|
||||
{
|
||||
[Token(Token = "0x6009653")]
|
||||
[Address(RVA = "0x1C34620", Offset = "0x1C33420", VA = "0x181C34620", Slot = "7")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Combine(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x6009654")]
|
||||
[Address(RVA = "0x1C34760", Offset = "0x1C33560", VA = "0x181C34760", Slot = "8")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Remove(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009655 RID: 38485 RVA: 0x001EEBEC File Offset: 0x001ECDEC
|
||||
[Token(Token = "0x6009655")]
|
||||
[Address(RVA = "0x4A24B0", Offset = "0x4A12B0", VA = "0x1804A24B0")]
|
||||
public DefaultAccessTokenAuthenticator(HubConnection connection)
|
||||
{
|
||||
this.StartAuthentication();
|
||||
this._connection = connection;
|
||||
}
|
||||
|
||||
// Token: 0x06009656 RID: 38486 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009656")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "9")]
|
||||
public void StartAuthentication()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009657 RID: 38487 RVA: 0x001EEC08 File Offset: 0x001ECE08
|
||||
[Token(Token = "0x6009657")]
|
||||
[Address(RVA = "0x1C342B0", Offset = "0x1C330B0", VA = "0x181C342B0", Slot = "10")]
|
||||
public void PrepareRequest(NEBIGEDJGPP request)
|
||||
{
|
||||
if (HTTPProtocolFactory.GetProtocolFromUri(request.FHCKMFKKHLK) == SupportedProtocols.HTTP)
|
||||
{
|
||||
Uri uri = request.NJIBHKPHKFF;
|
||||
HubConnection connection = this._connection;
|
||||
NegotiationResult <NegotiationResult>k__BackingField = connection.<NegotiationResult>k__BackingField;
|
||||
if (<NegotiationResult>k__BackingField != 0)
|
||||
{
|
||||
string <AccessToken>k__BackingField = <NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
if (connection == 0)
|
||||
{
|
||||
if (uri.Query != 0)
|
||||
{
|
||||
}
|
||||
string text = uri.Query + "&";
|
||||
string scheme = uri.Scheme;
|
||||
string host = uri.Host;
|
||||
int port = uri.Port;
|
||||
string absolutePath = uri.AbsolutePath;
|
||||
string <AccessToken>k__BackingField2 = this._connection.<NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
string text2 = text + "access_token=" + <AccessToken>k__BackingField2;
|
||||
Uri uri2 = new UriBuilder(scheme, host, port, absolutePath, text2).Uri;
|
||||
}
|
||||
}
|
||||
request.NJIBHKPHKFF = uri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009658 RID: 38488 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009658")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "11")]
|
||||
public void PrepareWebSocket(WebSocket webSocket)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009659 RID: 38489 RVA: 0x001EECD0 File Offset: 0x001ECED0
|
||||
[Token(Token = "0x6009659")]
|
||||
[Address(RVA = "0x1C34480", Offset = "0x1C33280", VA = "0x181C34480", Slot = "12")]
|
||||
public Uri PrepareUri(Uri uri)
|
||||
{
|
||||
HubConnection connection = this._connection;
|
||||
NegotiationResult <NegotiationResult>k__BackingField = connection.<NegotiationResult>k__BackingField;
|
||||
if (<NegotiationResult>k__BackingField != 0)
|
||||
{
|
||||
string <AccessToken>k__BackingField = <NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
if (connection == 0)
|
||||
{
|
||||
if (uri.Query != 0)
|
||||
{
|
||||
}
|
||||
string text = uri.Query + "&";
|
||||
string scheme = uri.Scheme;
|
||||
string host = uri.Host;
|
||||
int port = uri.Port;
|
||||
string absolutePath = uri.AbsolutePath;
|
||||
string <AccessToken>k__BackingField2 = this._connection.<NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
string text2 = text + "access_token=" + <AccessToken>k__BackingField2;
|
||||
return new UriBuilder(scheme, host, port, absolutePath, text2).Uri;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006675 RID: 26229
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006675")]
|
||||
private HubConnection _connection;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user