PageSourceSearch

https://www.oauth.com/wp-content/themes/oauthdotcom/js/common.js?ver=149596cc0c6824a0e1eff9271ad09514046367b2

js oauth.com collected 2026-09-24 07:33:17 UTC 1,847 bytes, 75 lines download raw bytes

1
2function generate_state() {
3  return random_string(16);
4}
5
6function generate_auth_code() {
7  return random_string(48);
8}
9
10function generate_code_verifier() {
11  return random_string(48);
12}
13
14function generate_code_challenge(verifier) {
15  return base64_urlencode(sha256bin(verifier));
16}
17
18function completeStep(n) {
19  $(".step-item:nth-child("+n+")").addClass("is-active").addClass("is-completed"); 
20}
21
22function moveToStep(n) {
23  completeStep(n-1);
24  $(".step-item:nth-child("+n+")").addClass("is-active");
25}
26
27function scrollAnimated(top) {
28  top += $(".hero.is-primary").outerHeight();
29  $("html,body").animate({scrollTop: top});
30}
31
32function showError() {
33  $("#progress-section").addClass("hidden");
34  $("#error-section").removeClass("hidden");
35}
36
37var client_info = {};
38
39$(function(){
40  var heroHeight = $(".hero.is-primary").height();
41
42  $(window).bind("scroll", function(e) {
43    if($(window).scrollTop() > heroHeight) {
44      $("body").addClass("sticky");
45    } else {
46      $("body").removeClass("sticky");
47    }
48  });
49});
50
51function initializeClient(error, success) {
52  if(Cookies.get("client_id")) {
53    client_info.client_id = Cookies.get("client_id");
54    client_info.client_secret = Cookies.get("client_secret");
55    client_info.okta_url = Cookies.get("okta_url");
56    client_info.base_url = Cookies.get("base_url");
57    client_info.user_login = Cookies.get("user_login");
58    client_info.user_password = Cookies.get("user_password");
59
60    $(".client-id").text(client_info.client_id);
61    $(".client-secret").text(client_info.client_secret);
62    $(".okta-url").text(client_info.okta_url);
63    $(".base-url").text(client_info.base_url);
64    $(".user-login").text(client_info.user_login);
65    $(".user-password").text(client_info.user_password);
66
67    if(success) {
68      success();
69    }
70  } else {
71    if(error) {
72      error();
73    }
74  }
75}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.