100+ results for 'auth_key'

Not the results you expected?

snmpusm.h (https://gitlab.com/envieidoc/advancedtomato2) C Header · 238 lines

39 oid *usr_auth_protocol;

40 size_t usr_auth_protocol_length;

41 u_char *usr_auth_key;

42 size_t usr_auth_key_length;

108 auth_protocol_len);

109

110 int usm_set_usmStateReference_auth_key(struct

111 usmStateReference

112 *ref,

113 u_char * auth_key,

114 size_t

115 auth_key_len);

sfsauth_prot.x (https://github.com/maxtaco/sfslite.git) Alex · 315 lines

81 };

82

83 enum sfsauth_keyhalf_type {

84 SFSAUTH_KEYHALF_NONE = 0,

85 SFSAUTH_KEYHALF_PRIV = 1,

86 SFSAUTH_KEYHALF_DELTA = 2,

87 SFSAUTH_KEYHALF_FLAG = 3

88 };

89

90 union sfsauth_keyhalf switch (sfsauth_keyhalf_type type) {

91 case SFSAUTH_KEYHALF_NONE:

config_test.go (https://github.com/kevin-hf/education.git) Go · 537 lines

59 "profiles": {

60 "CA": {

61 "auth_key": "sample",

62 "remote": "localhost"

63 },

72 }

73 },

74 "auth_keys": {

75 "sample": {

76 "type":"standard",

87 "signing": {

88 "default": {

89 "auth_key": "sample",

90 "remote": "localhost"

91 }

wpa.h (https://gitlab.com/envieidoc/tomato) C Header · 159 lines

92 } PACKED count;

93 wpa_suite_t list[1];

94 } PACKED wpa_suite_ucast_t, wpa_suite_auth_key_mgmt_t;

95 #define WPA_IE_SUITE_COUNT_LEN 2

96 #ifdef BCMWPA2

WebserviceKey.php (https://bitbucket.org/enurkov/prestashop.git) PHP · 157 lines

83 }

84

85 public static function getPermissionForAccount($auth_key)

86 {

87 $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('

89 FROM `'._DB_PREFIX_.'webservice_permission` p

90 LEFT JOIN `'._DB_PREFIX_.'webservice_account` a ON (a.id_webservice_account = p.id_webservice_account)

91 WHERE a.key = \''.pSQL($auth_key).'\'

92 ');

93 $permissions = array();

98 }

99

100 public static function isKeyActive($auth_key)

101 {

102 $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('

AuthKeyspace.java (https://github.com/beobal/cassandra.git) Java · 115 lines

100 private static TableMetadata parse(String name, String description, String cql)

101 {

102 return CreateTableStatement.parse(format(cql, name), SchemaConstants.AUTH_KEYSPACE_NAME)

103 .id(TableId.forSystemTable(SchemaConstants.AUTH_KEYSPACE_NAME, name))

109 public static KeyspaceMetadata metadata()

110 {

111 return KeyspaceMetadata.create(SchemaConstants.AUTH_KEYSPACE_NAME,

112 KeyspaceParams.simple(1),

113 Tables.of(Roles, RoleMembers, RolePermissions, ResourceRoleIndex, NetworkPermissions));

IndexAction.class.php (https://gitlab.com/colin.luo/shbs) PHP · 153 lines

115 public function think_encrypt($data, $key = '', $expire = 0)

116 {

117 $key = md5(empty($key) ? C('DATA_AUTH_KEY') : $key);

118 $data = base64_encode($data);

119 $x = 0;

vm-webdisp.tf (https://github.com/Azure/sap-hana.git) Terraform · 249 lines

80 size = length(local.web_size) > 0 ? local.web_size : local.web_sizing.compute.vm_size

81 admin_username = var.sid_username

82 admin_password = local.enable_auth_key ? null : var.sid_password

83 disable_password_authentication = !local.enable_auth_password

84

wpa.h (https://gitlab.com/hellrokr/orange-pi-plus) C Header · 194 lines

78 } BWL_POST_PACKED_STRUCT count;

79 wpa_suite_t list[1];

80 } BWL_POST_PACKED_STRUCT wpa_suite_ucast_t, wpa_suite_auth_key_mgmt_t;

81 #define WPA_IE_SUITE_COUNT_LEN 2

82 typedef BWL_PRE_PACKED_STRUCT struct

cluster_config.py (https://gitlab.com/asimpletune/rethinkdb) Python · 102 lines

27

28 assert list(r.db("rethinkdb").table("cluster_config").run(conn)) == [

29 {"id": "auth", "auth_key": None},

30 {"id": "heartbeat", "heartbeat_timeout_secs": 10}

31 ]

32

33 res = r.db("rethinkdb").table("cluster_config").get("auth").update({"auth_key": "hunter2"}).run(conn)

34 assert res["errors"] == 0

35

47 print("Checking connection with the AuthKey (%.2fs)" % (time.time() - startTime))

48

49 conn = r.connect(server.host, server.driver_port, auth_key="hunter2")

50

51 rows = list(r.db("rethinkdb").table("cluster_config").filter({"id": "auth"}).run(conn))

rps-test_util.c (https://gitlab.com/taler/gnunet) C · 197 lines

97

98 char *

99 auth_key_to_string (struct GNUNET_CRYPTO_AuthKey auth_key)

100 {

101 int size;

114 buf = GNUNET_malloc (keylen + 1);

115

116 end = GNUNET_STRINGS_data_to_string (&(auth_key.key),

117 sizeof (struct GNUNET_CRYPTO_AuthKey),

118 buf,

140

141 struct GNUNET_CRYPTO_AuthKey

142 string_to_auth_key (const char *str)

143 {

144 struct GNUNET_CRYPTO_AuthKey auth_key;

sec_crypto.h (https://github.com/tekkamanninja/linux.git) C Header · 407 lines

365 /*

366 * auth_len: 0~23 bit

367 * auth_key_offset: 24~31 bits

368 */

369 __le32 a_len_key;

wp-config.php (https://gitlab.com/GzusGO/TDD-WordPress-standard-installation) PHP · 112 lines

63 // Grab these from: https://api.wordpress.org/secret-key/1.1/salt

64 // ==============================================================

65 define('AUTH_KEY','');

66 define('SECURE_AUTH_KEY','');

auth.c (https://github.com/roaraudio/roaraudio.git) C · 246 lines

31 int i;

32

33 memset(g_auth_keyring, 0, sizeof(g_auth_keyring));

34

35 for (i = 0; i < AUTH_KEYRING_LEN; i++) {

36 g_auth_keyring[i].type = _NONE;

37 }

38

55

56 union auth_typeunion * auth_regkey_simple(int type, enum roard_client_acclev acclev) {

57 struct auth_key * key;

58 int i;

59

60 for (i = 0; i < AUTH_KEYRING_LEN; i++) {

61 if ( (key = &(g_auth_keyring[i]))->type == _NONE ) {

BUILD.gn (https://gitlab.com/0072016/Facebook-SDK-) GN · 162 lines

89 defines = [ "USE_GOOGLE_API_KEYS" ]

90 if (!is_ios) {

91 defines += [ "USE_GOOGLE_API_KEYS_FOR_AUTH_KEY" ]

92 }

93 }

google-9-rdbx-leak-plug.patch (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Patch · 298 lines

42 stat = crypto_kernel_alloc_auth(p->rtp.auth_type,

43 &str->rtp_auth,

44 p->rtp.auth_key_len,

45 - p->rtp.auth_tag_len);

46 + p->rtp.auth_tag_len);

83 /* allocate auth function */

84 @@ -144,33 +136,37 @@ srtp_stream_alloc(srtp_stream_ctx_t **str_ptr,

85 p->rtcp.auth_key_len,

86 p->rtcp.auth_tag_len);

87 if (stat) {

cryptauth_key_registry_impl_unittest.cc (https://github.com/chromium/chromium.git) C++ · 276 lines

3 // found in the LICENSE file.

4

5 #include "ash/services/device_sync/cryptauth_key_registry_impl.h"

6

7 #include "ash/services/device_sync/cryptauth_enrollment_constants.h"

cperf_test_vector_parsing.c (https://github.com/tiglabs/containerdns.git) C · 507 lines

74 printf("\nauth_key =\n");

75 for (i = 0; i < test_vector->auth_key.length; ++i) {

76 if ((i % wrap == 0) && (i != 0))

77 printf("\n");

80 else

81 printf("0x%02x, ",

82 test_vector->auth_key.data[i]);

83 }

84 printf("\n");

289 } else if (strstr(key_token, "auth_key")) {

290 rte_free(vector->auth_key.data);

291 vector->auth_key.data = data;

298 return -1;

299 }

300 vector->auth_key.length = opts->auth_key_sz;

301 }

302

rtl8370_asicdrv_rrcp.c (https://gitlab.com/thanhnhat041/padavan-ng) C · 267 lines

153 return RT_ERR_PHY_DATAMASK;

154

155 retVal = rtl8370_setAsicReg(RTL8370_RRCP_AUTH_KEY_REG, authKey);

156 if(retVal != RT_ERR_OK )

157 return retVal;

177 ret_t rtl8370_getAsicRrcpAuthenticationKey(uint32 *authKey)

178 {

179 return rtl8370_getAsicReg(RTL8370_RRCP_AUTH_KEY_REG, authKey);

180 }

181

login.js (https://bitbucket.org/jdenton/stuffsafe-mobile-ipad.git) JavaScript · 96 lines

45 alert('Sorry! We could not find your account.');

46 } else {

47 globals.AUTH_KEY = jdata.AuthKey;

48 globals.USER_TYPE = jdata.UserType;

49 globals.PERMISSIONS = jdata.Permissions;

MediaConsts.java (https://bitbucket.org/kshark27/just-player.git) Java · 249 lines

230 public static interface Auth {

231 public static final String _ID = BaseColumns._ID;

232 public static final String AUTH_KEY = "authkey";

233 public static final String AUTH_URL = "authurl";

234 public static final String PARAM1 = "param1";

Account.spec.js (https://github.com/stripe/stripe-node.git) JavaScript · 517 lines

4 const expect = require('chai').expect;

5

6 const TEST_AUTH_KEY = 'aGN0bIwXnHdw5645VABjPdSn8nWY7G11';

7

8 describe('Account Resource', () => {

129

130 it('Sends the correct request [with specified auth]', () => {

131 stripe.account.listCapabilities('acct_123', TEST_AUTH_KEY);

132 expect(stripe.LAST_REQUEST).to.deep.equal({

133 method: 'GET',

135 headers: {},

136 data: {},

137 auth: TEST_AUTH_KEY,

138 settings: {},

139 });

01-chatengine.sql (https://github.com/nebula-chat/chatengine.git) SQL · 1087 lines

187 `deleted_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',

188 PRIMARY KEY (`id`),

189 UNIQUE KEY `auth_key_id` (`auth_key_id`,`user_id`)

190 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

191

392 `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

393 PRIMARY KEY (`id`),

394 UNIQUE KEY `auth_key_id` (`auth_key_id`,`user_id`,`token_type`)

395 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

396

582 `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

583 PRIMARY KEY (`id`),

584 UNIQUE KEY `auth_key_id` (`auth_key_id`,`client_id`)

585 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

586

example.cpp (https://gitlab.com/asimpletune/rethinkdb) C++ · 265 lines

8 #define default_port "28015"

9 #define default_db "test"

10 #define default_auth_key ""

11

12 using namespace std;

33 string auth_key = ask("authorization key (leave empty for '" default_auth_key "')");

34 if (auth_key.empty()) auth_key = default_auth_key;

35

36 shared_ptr <connection> conn(new connection(host, port, db, auth_key));

schema.rb (https://github.com/BillTheBest/owp.git) Ruby · 149 lines

55 create_table "hardware_servers", :force => true do |t|

56 t.string "host"

57 t.string "auth_key"

58 t.string "description"

59 t.string "default_os_template"

pointer_auth.h (https://gitlab.com/pachecof/centos-stream-9) C Header · 152 lines

45 };

46

47 static __always_inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys)

48 {

49 if (system_supports_address_auth())

62 #endif /* CONFIG_ARM64_PTR_AUTH_KERNEL */

63

64 static inline void ptrauth_keys_install_user(struct ptrauth_keys_user *keys)

65 {

66 if (system_supports_address_auth()) {

74 }

75

76 static inline void ptrauth_keys_init_user(struct ptrauth_keys_user *keys)

77 {

78 if (system_supports_address_auth()) {

auth_model_spec.rb (https://gitlab.com/unofficial-mirrors/manageiq) Ruby · 184 lines

26 subject { FixAuth::FixAuthentication }

27 let(:contenders) { subject.contenders.collect(&:name) }

28 let(:v1_v2) { subject.create(:name => "v2_v1", :password => enc_v2, :auth_key => enc_v1) }

29 let(:v2_v1) { subject.create(:name => "v1_v2", :password => enc_v1, :auth_key => enc_v2) }

40

41 it "should determine available_columns" do

42 expect(subject.available_columns).to eq(%w(password auth_key))

43 end

44

50 it "should build selection criteria (non selects)" do

51 expect(subject.selection_criteria).to match(/OR/)

52 expect(subject.selection_criteria).to match(/password.*<>.*''.*OR.*auth_key.*<>.*''/)

53 end

54

79 subject.fix_passwords(leg)

80 expect(leg).to be_password_changed

81 expect(leg).not_to be_auth_key_changed

82 expect(leg.password).to be_encrypted(pass)

83 expect(leg.password).to be_encrypted_version(2)

keyctl.h (https://github.com/amirkrifa/ns-allinone-3.9.git) C Header · 54 lines

20 #define KEY_SPEC_USER_SESSION_KEYRING -5 /* - key ID for UID-session keyring */

21 #define KEY_SPEC_GROUP_KEYRING -6 /* - key ID for GID-specific keyring */

22 #define KEY_SPEC_REQKEY_AUTH_KEY -7 /* - key ID for assumed request_key auth key */

23

24 /* request-key default keyrings */

range_meters.o.d (https://gitlab.com/pitman/pi-pilot.git) D · 131 lines

28 ../mavlink/v1.0/common/./mavlink_msg_change_operator_control.h \

29 ../mavlink/v1.0/common/./mavlink_msg_change_operator_control_ack.h \

30 ../mavlink/v1.0/common/./mavlink_msg_auth_key.h \

31 ../mavlink/v1.0/common/./mavlink_msg_set_mode.h \

32 ../mavlink/v1.0/common/./mavlink_msg_param_request_read.h \

util.lua (https://github.com/logiceditor-com/codebase.git) Lua · 194 lines

154 MOIMIR_AUTHENTIFICATION_KEY = context.identifier(1, 256);

155 VKONTAKTE_USER_ID = context.identifier(1, 256);

156 VKONTAKTE_AUTH_KEY = context.identifier(1, 256);

157

158 --------------------------------------------------------------------------------

wordpress-install.sh (https://gitlab.com/leo020588/wordpress-wsl) Shell · 199 lines

79 WORDPRESS_WP_DEBUG_LOG=$WP_LOG_FILE

80

81 WORDPRESS_AUTH_KEY=$(salt 64)

82 WORDPRESS_AUTH_SALT=$(salt 64)

83 WORDPRESS_SECURE_AUTH_KEY=$(salt 64)

cryptauth_key.cc (https://github.com/chromium/chromium.git) C++ · 164 lines

3 // found in the LICENSE file.

4

5 #include "ash/services/device_sync/cryptauth_key.h"

6

7 #include "ash/services/device_sync/value_string_encoding.h"

User.php (https://gitlab.com/makkooz/nikestreetbeat) PHP · 102 lines

36 'password_hash',

37 'password_reset_token',

38 'auth_key',

39 'created_at',

40 'updated_at',

93 ->andFilterWhere(['like', 'password_hash', $this->password_hash])

94 ->andFilterWhere(['like', 'password_reset_token', $this->password_reset_token])

95 ->andFilterWhere(['like', 'auth_key', $this->auth_key])

96 ->andFilterWhere(['like', 'created_at', $this->created_at])

97 ->andFilterWhere(['like', 'updated_at', $this->updated_at])

model.rb (https://github.com/nreckart/devise_ldap_authenticatable.git) Ruby · 90 lines

61 # authenticated user if it's valid or nil.

62 def authenticate_with_ldap(attributes={})

63 auth_key = self.authentication_keys.first

64 return nil unless attributes[auth_key].present?

65

66 # resource = find_for_ldap_authentication(conditions)

67 resource = where(auth_key => attributes[auth_key]).first

68

69 if (resource.blank? and ::Devise.ldap_create_user)

70 resource = new

71 resource[auth_key] = attributes[auth_key]

72 resource.password = attributes[:password]

73 end

foreground.class.php (https://github.com/hxzyzz/ddc.git) PHP · 76 lines

27 //жǷauth cookie

28 if ($phpcms_auth) {

29 $auth_key = md5(pc_base::load_config('system', 'auth_key').str_replace('7.0' ,'8.0',$_SERVER['HTTP_USER_AGENT']));

30 list($userid, $password) = explode("\t", sys_auth($phpcms_auth, 'DECODE', $auth_key));

66 param::set_cookie('_groupid', '');

67 }

68 unset($userid, $password, $phpcms_auth, $auth_key);

69 } else {

70 $forward= isset($_GET['forward']) ? urlencode($_GET['forward']) : urlencode(get_url());

wp-config-sample.php (https://gitlab.com/mostafame/team_website) PHP · 89 lines

47 * @since 2.6.0

48 */

49 define('AUTH_KEY', 'put your unique phrase here');

50 define('SECURE_AUTH_KEY', 'put your unique phrase here');

carrier.php (https://gitlab.com/ptisky/API_prestashop) PHP · 185 lines

81 {

82

83 $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);

84 $opt = array('resource' => 'carriers');

85 $opt['id'] = (int)$id_carrier;

deploying.md (https://github.com/serverless/serverless.git) Markdown · 114 lines

19 ## prerequisites

20

21 In order to deploy your Cloudflare Worker, you need to set your Cloudflare email as an environmental variable called `CLOUDFLARE_AUTH_EMAIL`, and your Cloudflare Global API Key as an environmental variable called `CLOUDFLARE_AUTH_KEY`. You will also need to set `accountId` and `zoneId` in `serverless.yml` under `service.config`. The first part of the path when you open [Cloudflare dashboard](https://dash.cloudflare.com/) as a logged in user is your `accountId`, e.g. `dash.cloudflare.com/{accountId}`. And the `zoneId` can be found from the overview tab after selecting the desired zone from the [Cloudflare dashboard](https://dash.cloudflare.com/).

22

23 Environmental variables are variables that live inside your terminal.

26

27 ```bash

28 export CLOUDFLARE_AUTH_KEY=YOUR_API_KEY_HERE

29 export CLOUDFLARE_AUTH_EMAIL=YOUR_CLOUDFLARE_EMAIL

30 ```

33

34 ```bash

35 set CLOUDFLARE_AUTH_KEY=YOUR_API_KEY_HERE

36 set CLOUDFLARE_AUTH_EMAIL=YOUR_CLOUDFLARE_EMAIL

37 ```

class-fl-builder-service-aweber.php (https://bitbucket.org/madiha303/clickitplugins-web.git) PHP · 277 lines

38 }

39

40 list( $auth_key, $auth_token, $req_key, $req_token, $oauth ) = explode( '|', $auth_code );

41

42 $this->api_instance = new AWeberAPI( $auth_key, $auth_token );

zrtp_srtp_dm.c (https://github.com/curriegrad2004/FreeSWITCH.git) C · 232 lines

29 sp->cipher_key_len = zp->cipher_key_len;

30 sp->auth_type = HMAC_SHA1;

31 sp->auth_key_len = zp->auth_key_len;

32 sp->auth_tag_len = zp->auth_tag_len->tag_length ? zp->auth_tag_len->tag_length : 10;

33 sp->sec_serv = sec_serv_conf_and_auth;

wlan_bssdef.h (https://bitbucket.org/bendikro/net-next-rdb.git) C Header · 140 lines

135

136 /* john */

137 #define NUM_PRE_AUTH_KEY 16

138 #define NUM_PMKID_CACHE NUM_PRE_AUTH_KEY

User.php (https://github.com/michaelweixi/blogdemo2.git) PHP · 228 lines

16 * @property string $password_reset_token

17 * @property string $email

18 * @property string $auth_key

19 * @property integer $status

20 * @property integer $created_at

67 'id' => 'ID',

68 'username' => '用户名',

69 'auth_key' => 'Auth Key',

70 'password_hash' => 'Password Hash',

71 'password_reset_token' => 'Password Reset Token',

151 public function getAuthKey()

152 {

153 return $this->auth_key;

154 }

155

install.php (https://bitbucket.org/moodsdesign-ondemand/reglot.git) PHP · 107 lines

26 if (defined('GP_AUTH_KEY'))

27 $config_defaults['GP_AUTH_KEY'] = GP_AUTH_KEY;

28 if (defined('GP_SECURE_AUTH_KEY'))

29 $config_defaults['GP_SECURE_AUTH_KEY'] = GP_SECURE_AUTH_KEY;

30 if (defined('GP_LOGGED_IN_KEY'))

31 $config_defaults['GP_LOGGED_IN_KEY'] = GP_LOGGED_IN_KEY;

70 <label for="config[GP_AUTH_KEY]">GP_AUTH_KEY</label>

71 <input type="text" name="config[GP_AUTH_KEY]" value="<?php echo @$config['GP_AUTH_KEY']; ?>" id="config[GP_AUTH_KEY]"><br/>

72 <label for="config[GP_SECURE_AUTH_KEY]">GP_SECURE_AUTH_KEY</label>

73 <input type="text" name="config[GP_SECURE_AUTH_KEY]" value="<?php echo @$config['GP_SECURE_AUTH_KEY']; ?>" id="config[GP_SECURE_AUTH_KEY]"><br/>

74 <label for="config[GP_LOGGED_IN_KEY]">GP_LOGGED_IN_KEY</label>

75 <input type="text" name="config[GP_LOGGED_IN_KEY]" value="<?php echo @$config['GP_LOGGED_IN_KEY']; ?>" id="config[GP_LOGGED_IN_KEY]"><br/>

imap-urlauth-backend.c (https://github.com/dovecot/core.git) C · 175 lines

40 urlauth_key.value = mailbox_key_hex;

41 ret = mailbox_attribute_set(t, MAIL_ATTRIBUTE_TYPE_PRIVATE,

42 IMAP_URLAUTH_KEY, &urlauth_key);

43

44 if (mailbox_transaction_commit(&t) < 0) {

53 imap_urlauth_backend_trans_get_mailbox_key(struct mailbox *box,

54 bool create,

55 unsigned char mailbox_key_r[IMAP_URLAUTH_KEY_LEN],

56 const char **client_error_r,

57 enum mail_error *error_code_r)

67

68 ret = mailbox_attribute_get(box, MAIL_ATTRIBUTE_TYPE_PRIVATE,

69 IMAP_URLAUTH_KEY, &urlauth_key);

70 if (ret < 0)

71 return -1;

OAuthGateway.m (https://github.com/gholland/yammer_iphone.git) Objective C · 208 lines

36 + (void)getRequestToken:(BOOL)createNewAccount {

37

38 OAConsumer *consumer = [[OAConsumer alloc] initWithKey:OAUTH_KEY

39 secret:OAUTH_SECRET];

40

79

80 OAToken *requestToken = [[OAToken alloc] initWithHTTPResponseBody:[LocalStorage getRequestToken]];

81 OAConsumer *consumer = [[OAConsumer alloc] initWithKey:OAUTH_KEY

82 secret:OAUTH_SECRET];

83

155 NSURL *url = [OAuthGateway fixRelativeURL:path];

156

157 OAConsumer *consumer = [[OAConsumer alloc] initWithKey:OAUTH_KEY

158 secret:OAUTH_SECRET];

159

authenticated_system.rb (https://github.com/meloon/crabgrass.git) Ruby · 133 lines

128 auth_key = @@http_auth_headers.detect { |h| request.env.has_key?(h) }

129 auth_data = request.env[auth_key].to_s.split unless auth_key.blank?

130 return auth_data && auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil]

131 end

user_service.go (https://github.com/eyebluecn/tank.git) Go · 280 lines

115 func (this *UserService) PreHandle(writer http.ResponseWriter, request *http.Request) {

116

117 sessionId := util.GetSessionUuidFromRequest(request, core.COOKIE_AUTH_KEY)

118

119 if sessionId != "" {

172 timeUUID, _ := uuid.NewV4()

173 uuidStr := string(timeUUID.String())

174 request.Form[core.COOKIE_AUTH_KEY] = []string{uuidStr}

175

176 core.CONTEXT.GetSessionCache().Add(uuidStr, 10*time.Second, user)

keyctl.h (https://github.com/srikard/linux.git) C Header · 136 lines

23 #define KEY_SPEC_USER_SESSION_KEYRING -5 /* - key ID for UID-session keyring */

24 #define KEY_SPEC_GROUP_KEYRING -6 /* - key ID for GID-specific keyring */

25 #define KEY_SPEC_REQKEY_AUTH_KEY -7 /* - key ID for assumed request_key auth key */

26 #define KEY_SPEC_REQUESTOR_KEYRING -8 /* - key ID for request_key() dest keyring */

27

slugs.h (https://github.com/mavlink/mavlink-ivy-interface.git) C Header · 62 lines

21

22 #ifndef MAVLINK_MESSAGE_INFO

23 #define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_BOOT, MAVLINK_MESSAGE_INFO_SYSTEM_TIME, MAVLINK_MESSAGE_INFO_PING, MAVLINK_MESSAGE_INFO_SYSTEM_TIME_UTC, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL_ACK, MAVLINK_MESSAGE_INFO_AUTH_KEY, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_ACTION_ACK, MAVLINK_MESSAGE_INFO_ACTION, MAVLINK_MESSAGE_INFO_SET_MODE, MAVLINK_MESSAGE_INFO_SET_NAV_MODE, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_READ, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_LIST, MAVLINK_MESSAGE_INFO_PARAM_VALUE, MAVLINK_MESSAGE_INFO_PARAM_SET, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_GPS_RAW_INT, MAVLINK_MESSAGE_INFO_SCALED_IMU, MAVLINK_MESSAGE_INFO_GPS_STATUS, MAVLINK_MESSAGE_INFO_RAW_IMU, MAVLINK_MESSAGE_INFO_RAW_PRESSURE, MAVLINK_MESSAGE_INFO_ATTITUDE, MAVLINK_MESSAGE_INFO_LOCAL_POSITION, MAVLINK_MESSAGE_INFO_GPS_RAW, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION, MAVLINK_MESSAGE_INFO_SYS_STATUS, MAVLINK_MESSAGE_INFO_RC_CHANNELS_RAW, MAVLINK_MESSAGE_INFO_RC_CHANNELS_SCALED, MAVLINK_MESSAGE_INFO_SERVO_OUTPUT_RAW, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE, MAVLINK_MESSAGE_INFO_WAYPOINT, MAVLINK_MESSAGE_INFO_WAYPOINT_REQUEST, MAVLINK_MESSAGE_INFO_WAYPOINT_SET_CURRENT, MAVLINK_MESSAGE_INFO_WAYPOINT_CURRENT, MAVLINK_MESSAGE_INFO_WAYPOINT_REQUEST_LIST, MAVLINK_MESSAGE_INFO_WAYPOINT_COUNT, MAVLINK_MESSAGE_INFO_WAYPOINT_CLEAR_ALL, MAVLINK_MESSAGE_INFO_WAYPOINT_REACHED, MAVLINK_MESSAGE_INFO_WAYPOINT_ACK, MAVLINK_MESSAGE_INFO_GPS_SET_GLOBAL_ORIGIN, MAVLINK_MESSAGE_INFO_GPS_LOCAL_ORIGIN_SET, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_SETPOINT_SET, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_SETPOINT, MAVLINK_MESSAGE_INFO_CONTROL_STATUS, MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SAFETY_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SET_ROLL_PITCH_YAW_THRUST, MAVLINK_MESSAGE_INFO_SET_ROLL_PITCH_YAW_SPEED_THRUST, MAVLINK_MESSAGE_INFO_ROLL_PITCH_YAW_THRUST_SETPOINT, MAVLINK_MESSAGE_INFO_ROLL_PITCH_YAW_SPEED_THRUST_SETPOINT, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT, MAVLINK_MESSAGE_INFO_POSITION_TARGET, MAVLINK_MESSAGE_INFO_STATE_CORRECTION, MAVLINK_MESSAGE_INFO_SET_ALTITUDE, MAVLINK_MESSAGE_INFO_REQUEST_DATA_STREAM, MAVLINK_MESSAGE_INFO_HIL_STATE, MAVLINK_MESSAGE_INFO_HIL_CONTROLS, MAVLINK_MESSAGE_INFO_MANUAL_CONTROL, MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT, MAVLINK_MESSAGE_INFO_VFR_HUD, MAVLINK_MESSAGE_INFO_COMMAND, MAVLINK_MESSAGE_INFO_COMMAND_ACK, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_OPTICAL_FLOW, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_OBJECT_DETECTION_EVENT, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_CPU_LOAD, MAVLINK_MESSAGE_INFO_AIR_DATA, MAVLINK_MESSAGE_INFO_SENSOR_BIAS, MAVLINK_MESSAGE_INFO_DIAGNOSTIC, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SLUGS_NAVIGATION, MAVLINK_MESSAGE_INFO_DATA_LOG, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_GPS_DATE_TIME, MAVLINK_MESSAGE_INFO_MID_LVL_CMDS, MAVLINK_MESSAGE_INFO_CTRL_SRFC_PT, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SLUGS_ACTION, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_DEBUG_VECT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_FLOAT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_INT, MAVLINK_MESSAGE_INFO_STATUSTEXT, MAVLINK_MESSAGE_INFO_DEBUG}

24 #endif

25

storetestcase.rb (https://github.com/ekcell/openmind.git) Ruby · 172 lines

161

162 # there is no key to start with, so generate a new key and return it

163 key = @store.get_auth_key

164

165 # the second time we should return the same key as before

166 key2 = @store.get_auth_key

167 assert key == key2

168 end

Package.ps1 (https://git01.codeplex.com/myjabbr) Powershell · 138 lines

1 param(

2 $authKey = $env:JABBR_AUTH_KEY,

3 $googleAnalyticsToken = $env:JABBR_GOOGLE_ANALYTICS,

4 $remoteDesktopAccountExpiration = $env:JABBR_REMOTE_DESKTOP_ACCOUNT_EXPIRATION,

build_ssh.sh (https://github.com/NERSC/shifter.git) Shell · 136 lines

105 StrictModes yes

106 PermitRootLogin no

107 AuthorizedKeysFile ${INST_PREFIX}/etc/user_auth_keys

108 IgnoreUserKnownHosts yes

109 PasswordAuthentication no

AuthenticationMngImpl.java (https://gitlab.com/BGCX262/zyzweb-svn-to-git.git) Java · 174 lines

41 auth.setLoginIp(ip);

42 save(auth);

43 session.setAttribute(request, response, AUTH_KEY, auth.getId());

44 return auth;

45 }

64 public Integer retrieveUserIdFromSession(SessionProvider session,

65 HttpServletRequest request) {

66 String authId = (String) session.getAttribute(request, AUTH_KEY);

67 if (authId == null) {

68 return null;

78 HttpServletRequest request, HttpServletResponse response,

79 String authId) {

80 session.setAttribute(request, response, AUTH_KEY, authId);

81 }

82

wp-config.php (https://gitlab.com/ogar.vasily/activetables) PHP · 83 lines

46 * @since 2.6.0

47 */

48 define('AUTH_KEY', 'впишите сюда уникальную фразу');

49 define('SECURE_AUTH_KEY', 'впишите сюда уникальную фразу');

zrtp_srtp.h (https://github.com/curriegrad2004/FreeSWITCH.git) C Header · 252 lines

94 * stream deinitialization by calling \ref zrtp_srtp_destroy().

95 */

96 uint32_t auth_key_len;

97

98 /*!< Structure describing SRTP authentication scheme */

User.php (https://github.com/funson86/funshop.git) PHP · 181 lines

14 * @property string $password_reset_token

15 * @property string $email

16 * @property string $auth_key

17 * @property integer $role

18 * @property integer $status

__init__.py (https://gitlab.com/jslee1/kitsune) Python · 107 lines

59

60 class Session(object):

61 key_key = 'twitter_oauth_key'

62 key_secret = 'twitter_oauth_secret'

63

__init__.py (https://github.com/Quasimo/v2ex.git) Python · 166 lines

20 twitter = db.StringProperty(required=False, default='')

21 twitter_oauth = db.IntegerProperty(required=False, default=0)

22 twitter_oauth_key = db.StringProperty(required=False)

23 twitter_oauth_secret = db.StringProperty(required=False)

24 twitter_oauth_string = db.StringProperty(required=False)

social_button.rb (https://github.com/bbruby1/arvut_system.git) Ruby · 110 lines

53 def set_push_authentication(username)

54 @push_username = AESCrypt.encrypt(username,

55 ::Rails.configuration.comet_auth_key,

56 ::Rails.configuration.comet_auth_iv,"AES-128-CBC")

57 @push_authentication = AESCrypt.encrypt(@push_username,

58 ::Rails.configuration.comet_auth_key,

59 ::Rails.configuration.comet_auth_iv,"AES-128-CBC")

60 end

youser_system.rb (https://github.com/smart/standfor.git) Ruby · 190 lines

186 auth_key = @@http_auth_headers.detect { |h| request.env.has_key?(h) }

187 auth_data = request.env[auth_key].to_s.split unless auth_key.blank?

188 return auth_data && auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil]

189 end

lastfm.rb (https://github.com/jarretth/LastfmForRoku.git) Ruby · 96 lines

30

31 def auth(username,password,authstring)

32 key = authstring.nil? ? auth_key(username,password) : authstring

33 @sessionkey = nil

34 params = {:username => username, :authToken => key}

89 end

90

91 def auth_key(username,password)

92 key = Digest::MD5.hexdigest(username.downcase + Digest::MD5.hexdigest(password))

93 puts "You may want to put authstring = \"{key}\" in your config/config.rb instead of your password"

resource_aws_dx_public_virtual_interface_test.go (https://github.com/terraform-providers/terraform-provider-aws.git) Go · 226 lines

50 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

51 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

52 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

53 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

54 resource.TestCheckResourceAttr(resourceName, "customer_address", customerAddress),

101 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

102 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

103 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

104 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

105 resource.TestCheckResourceAttr(resourceName, "customer_address", customerAddress),

125 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

126 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

127 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

128 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

129 resource.TestCheckResourceAttr(resourceName, "customer_address", customerAddress),

R-CRUD_import_partie_order.php (https://gitlab.com/ptisky/API_prestashop) PHP · 242 lines

25 {

26 try {

27 $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG); //connection

28 $xml_cart = $webService->get(array('url' => PS_SHOP_PATH.'/api/carts?schema=synopsis'));//on recupere un shemas blanc xml

29

93 // {

94 // try {

95 // $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG); //connection

96 // $xml_orders = $webService->get(array('url' => PS_SHOP_PATH.'/api/orders?schema=synopsis'));//on recupere un shemas blanc xml

97

AuthRole.pm (https://github.com/ironcamel/Net-OpenStack-Compute.git) Perl · 108 lines

24 return $self->auth_rax() if $self->is_rax_auth;

25 return $self->auth_basic() if $version lt 'v2';

26 return $self->auth_keystone();

27 }

28

31 my $res = $self->_agent->get($self->auth_url,

32 x_auth_user => $self->user,

33 x_auth_key => $self->password,

34 x_auth_project_id => $self->project_id,

35 );

42 }

43

44 sub auth_keystone {

45 my ($self) = @_;

46 return $self->_parse_catalog({

AuthClient.cs (https://github.com/realXtend/taiga.git) C# · 151 lines

46 SendParams.Add(authToken.ToString());

47

48 XmlRpcRequest request = new XmlRpcRequest("hg_new_auth_key", SendParams);

49 XmlRpcResponse reply;

50 try

82 System.Console.WriteLine("[HGrid]: Verifying user key with authority " + authurl);

83

84 XmlRpcRequest request = new XmlRpcRequest("hg_verify_auth_key", SendParams);

85 XmlRpcResponse reply;

86 try

Util.java (https://github.com/benetech/FBReaderJ.git) Java · 130 lines

102 intent.putExtra(AuthenticationActivity.USERNAME_KEY, mgr.getUserName());

103 intent.putExtra(AuthenticationActivity.SCHEME_KEY, "https");

104 intent.putExtra(AuthenticationActivity.CUSTOM_AUTH_KEY, true);

105 activity.startActivity(intent);

106 }

ssh_keys.py (https://github.com/hjwsm1989/teuthology.git) Python · 180 lines

106 log.info('generated public key {pub_key}'.format(pub_key=public_key))

107

108 # add an entry for all hosts in ctx to auth_keys_data

109 auth_keys_data = ''

113 # create a 'user@hostname' string using our fake hostname

114 fake_hostname = '{user}@{host}'.format(user=ssh_keys_user, host=str(inner_hostname))

115 auth_keys_data += '\nssh-rsa {pub_key} {user_host}\n'.format(pub_key=public_key, user_host=fake_hostname)

116

117 # for each host in ctx, add keys for all other hosts

137

138 # adding appropriate entries to the authorized_keys2 file for this host

139 auth_keys_file = '/home/{user}/.ssh/authorized_keys2'.format(user=username)

140

141 # now add the list of keys for hosts in ctx to ~/.ssh/authorized_keys2

142 misc.create_file(remote, auth_keys_file, auth_keys_data, str(600))

143

144 try:

model.rb (https://github.com/jgeorge300/devise_shibboleth_authenticatable.git) Ruby · 66 lines

30 auth_key = self.authentication_keys.first

31 auth_key_value = (self.case_insensitive_keys || []).include?(auth_key) ? env['eppn'].downcase : env['eppn']

32

33 resource = where(auth_key => auth_key_value).first

34

35 if (resource.nil? && !Devise.shibboleth_create_user)

36 logger.info("User(#{auth_key_value}) not found. Not configured to create the user.")

37 return nil

38 end

39

40 if (resource.nil? && Devise.shibboleth_create_user)

41 logger.info("Creating user(#{auth_key_value}).")

42 resource = new

43 save_user_shibboleth_headers(resource, env)

qce50.h (https://gitlab.com/culot/kernel_lge_madai) C Header · 201 lines

78 struct sps_command_element *auth_seg_size;

79 struct sps_command_element *auth_seg_start;

80 struct sps_command_element *auth_key;

81 struct sps_command_element *auth_iv;

82 struct sps_command_element *auth_nonce_info;

59729e468045_add_view_column_to_setting_table.py (https://github.com/ngoduykhanh/PowerDNS-Admin.git) Python · 92 lines

54 {'id': 27, 'name': 'ldap_user_group', 'value': '', 'view': 'authentication'},

55 {'id': 28, 'name': 'github_oauth_enabled', 'value': 'False', 'view': 'authentication'},

56 {'id': 29, 'name': 'github_oauth_key', 'value': '', 'view': 'authentication'},

57 {'id': 30, 'name': 'github_oauth_secret', 'value': '', 'view': 'authentication'},

58 {'id': 31, 'name': 'github_oauth_scope', 'value': 'email', 'view': 'authentication'},

auth.rb (https://github.com/adrianic/rBoard.git) Ruby · 120 lines

116 auth_key = @@http_auth_headers.detect { |h| request.env.has_key?(h) }

117 auth_data = request.env[auth_key].to_s.split unless auth_key.blank?

118 return auth_data && auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil]

119 end

Util.java (https://github.com/tamsuiboy/FBReaderJ.git) Java · 185 lines

118 intent.putExtra(AuthenticationActivity.USERNAME_KEY, mgr.UserNameOption.getValue());

119 intent.putExtra(AuthenticationActivity.SCHEME_KEY, "https");

120 intent.putExtra(AuthenticationActivity.CUSTOM_AUTH_KEY, true);

121 activity.startActivity(intent);

122 }

README.md (https://github.com/SeldonIO/seldon-core.git) Markdown · 143 lines

44 "spec": {

45 "name": "test-deployment",

46 "oauth_key": "oauth-key",

47 "oauth_secret": "oauth-secret",

48 "predictors": [

GetAuthenticationSpecs.cs (https://github.com/jssingh/csharp-cloudfiles.git) C# · 140 lines

67 _mockrequest.SetupGet(x => x.Headers).Returns(webrequest);

68 getAuthentication.Apply(_mockrequest.Object);

69 Assert.That(webrequest[CloudFiles.Utils.Constants.X_AUTH_KEY], Is.EqualTo("apikey"));

70 }

71 }

116 _mockrequest.SetupGet(x => x.Headers).Returns(webrequest);

117 getAuthentication.Apply(_mockrequest.Object);

118 Assert.That(webrequest[CloudFiles.Utils.Constants.X_AUTH_KEY], Is.EqualTo("apikey"));

119 }

120 }

135 Assert.That(getAuthentication.CreateUri().AbsoluteUri, Is.EqualTo("http://tempuri//v%201/account%20name/auth"));

136 Assert.That(headers[CloudFiles.Utils.Constants.X_AUTH_USER], Is.EqualTo("user%20name"));

137 Assert.That(headers[CloudFiles.Utils.Constants.X_AUTH_KEY], Is.EqualTo("pass%20word"));

138 }

139 }

test_crypto_constants.js (https://github.com/mafintosh/slides.git) JavaScript · 173 lines

10 it('should define lib constants', function(done) {

11 sodium.crypto_auth_BYTES.should.have.type('number').above(0);

12 sodium.crypto_auth_KEYBYTES.should.have.type('number').above(0);

13 sodium.crypto_box_NONCEBYTES.should.have.type('number').above(0);

14 sodium.crypto_box_BEFORENMBYTES.should.have.type('number').above(0);

19 sodium.crypto_hash_BYTES.should.have.type('number').above(0);

20 sodium.crypto_onetimeauth_BYTES.should.have.type('number').above(0);

21 sodium.crypto_onetimeauth_KEYBYTES.should.have.type('number').above(0);

22 sodium.crypto_secretbox_BOXZEROBYTES.should.have.type('number').above(0);

23 sodium.crypto_secretbox_KEYBYTES.should.have.type('number').above(0);

88 });

89

90 it('should fail to assign crypto_onetimeauth_KEYBYTES', function(done) {

91 (function() {

92 sodium.crypto_onetimeauth_KEYBYTES = 0;

class.redux_instances.php (https://gitlab.com/thisishayat/itv-2016) PHP · 166 lines

65

66 if (!class_exists('Redux_Tracking') || !method_exists('Redux_Tracking', 'trackingObject')) {

67 $hash = md5( md5( AUTH_KEY . SECURE_AUTH_KEY . '-redux' ) . '-support' );

68 add_action( 'wp_ajax_nopriv_' . $hash, array( $this, 'support_args' ) );

69 add_action( 'wp_ajax_' . $hash, array( $this, 'support_args' ) );

74

75 function tracking_arg() {

76 echo md5( AUTH_KEY . SECURE_AUTH_KEY . '-redux' );

77 die();

78 }

147 }

148 }

149 $array['key'] = md5( AUTH_KEY . SECURE_AUTH_KEY );

150 }

151

emscripten.sh (https://gitlab.com/Red54/rubinius) Shell · 51 lines

3 export MAKE_FLAGS='-j4'

4 export PREFIX="$(pwd)/libsodium-js"

5 export EXPORTED_FUNCTIONS='["_crypto_aead_chacha20poly1305_abytes","_crypto_aead_chacha20poly1305_decrypt","_crypto_aead_chacha20poly1305_encrypt","_crypto_aead_chacha20poly1305_keybytes","_crypto_aead_chacha20poly1305_npubbytes","_crypto_aead_chacha20poly1305_nsecbytes","_crypto_auth","_crypto_auth_bytes","_crypto_auth_keybytes","_crypto_auth_verify","_crypto_box_beforenm","_crypto_box_beforenmbytes","_crypto_box_detached","_crypto_box_detached_afternm","_crypto_box_easy","_crypto_box_easy_afternm","_crypto_box_keypair","_crypto_box_macbytes","_crypto_box_noncebytes","_crypto_box_open_detached","_crypto_box_open_detached_afternm","_crypto_box_open_easy","_crypto_box_open_easy_afternm","_crypto_box_publickeybytes","_crypto_box_seal","_crypto_box_seal_open","_crypto_box_sealbytes","_crypto_box_secretkeybytes","_crypto_box_seed_keypair","_crypto_box_seedbytes","_crypto_generichash","_crypto_generichash_bytes","_crypto_generichash_bytes_max","_crypto_generichash_bytes_min","_crypto_generichash_final","_crypto_generichash_init","_crypto_generichash_keybytes","_crypto_generichash_keybytes_max","_crypto_generichash_keybytes_min","_crypto_generichash_statebytes","_crypto_generichash_update","_crypto_hash","_crypto_hash_bytes","_crypto_pwhash_scryptsalsa208sha256","_crypto_pwhash_scryptsalsa208sha256_ll","_crypto_pwhash_scryptsalsa208sha256_memlimit_interactive","_crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_opslimit_interactive","_crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_saltbytes","_crypto_pwhash_scryptsalsa208sha256_str","_crypto_pwhash_scryptsalsa208sha256_str_verify","_crypto_pwhash_scryptsalsa208sha256_strbytes","_crypto_pwhash_scryptsalsa208sha256_strprefix","_crypto_scalarmult","_crypto_scalarmult_base","_crypto_scalarmult_bytes","_crypto_scalarmult_scalarbytes","_crypto_secretbox_detached","_crypto_secretbox_easy","_crypto_secretbox_keybytes","_crypto_secretbox_macbytes","_crypto_secretbox_noncebytes","_crypto_secretbox_open_detached","_crypto_secretbox_open_easy","_crypto_shorthash","_crypto_shorthash_bytes","_crypto_shorthash_keybytes","_crypto_sign","_crypto_sign_bytes","_crypto_sign_detached","_crypto_sign_ed25519_pk_to_curve25519","_crypto_sign_ed25519_sk_to_curve25519","_crypto_sign_keypair","_crypto_sign_open","_crypto_sign_publickeybytes","_crypto_sign_secretkeybytes","_crypto_sign_seed_keypair","_crypto_sign_seedbytes","_crypto_sign_verify_detached","_randombytes_buf","_randombytes_close","_randombytes_random","_randombytes_set_implementation","_randombytes_stir","_randombytes_uniform","_sodium_bin2hex","_sodium_hex2bin","_sodium_init","_sodium_library_version_major","_sodium_library_version_minor","_sodium_memcmp","_sodium_memzero","_sodium_version_string"]'

6 export TOTAL_MEMORY=33554432

7 export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"

default.py (https://github.com/rizumu/deploymachine.git) Python · 58 lines

2 from kokki import Execute, Fail, File, Template, Package, Service

3

4 assert env.config.cloudkick.oauth_key and env.config.cloudkick.oauth_secret and env.config.cloudkick.hostname

5

6 apt_list_path = '/etc/apt/sources.list.d/cloudkick.list'

authenticated_system.rb (https://gitlab.com/micro/noosfero) Ruby · 160 lines

156 auth_key = @@http_auth_headers.detect { |h| request.env.has_key?(h) }

157 auth_data = request.env[auth_key].to_s.split unless auth_key.blank?

158 return auth_data && auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil]

159 end

wp-config-sample.php (https://github.com/livinglab/openlab.git) PHP · 96 lines

49 * @since 2.6.0

50 */

51 define( 'AUTH_KEY', 'put your unique phrase here' );

52 define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );

DumbStore.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 116 lines

53 function Auth_OpenID_DumbStore($secret_phrase)

54 {

55 $this->auth_key = Auth_OpenID_SHA1($secret_phrase);

56 }

57

101 function getAuthKey()

102 {

103 return $this->auth_key;

104 }

105

Connector.php (https://github.com/livinglab/openlab.git) PHP · 275 lines

210

211 /**

212 * Get the value for the option `tribe_promoter_auth_key`

213 *

214 * @since 4.9.12

217 */

218 public function get_secret_key() {

219 $secret_key = get_option( 'tribe_promoter_auth_key' );

220

221 /**

ssl_utils.h (https://github.com/apache/trafficserver.git) C Header · 70 lines

40 int stek_master; // bool - Am I the STEK setter/rotator for POD?

41 ssl_ticket_key_t ticket_keys[2]; // current and past STEK

42 std::string redis_auth_key_file;

43 RedisPublisher *pub = nullptr;

44 RedisSubscriber *sub;

server.py (https://bitbucket.org/kewegmey/zmessage.git) Python · 134 lines

95 def main():

96 # Main function sets up ZMQ server and waits for messages

97 auth_keys = "keys/authkeys"

98

99 # Start child threads

100 public_keys_dir = os.path.abspath(auth_keys)

101

102 ctx = zmq.Context.instance()

client.hpp (https://github.com/yutopp/oauth-lib-cpp.git) C++ Header · 103 lines

27 {}

28

29 client( const auth_key_type& auth_key, const string_type& key )

30 : basic_client( auth_key )

34 template<class Protocol_, class Policy_>

35 client( const twitter::client<Protocol_, Policy_>& twitter, const string_type& key )

36 : basic_client( twitter.get_auth_key() )

37 , key_( key )

38 {}

41 void link_to_twitter( const twitter::client<Protocol_, Policy_>& twitter )

42 {

43 auth_.set_key( twitter.get_auth_key() );

44 }

45

README.md (https://gitlab.com/asimpletune/rethinkdb) Markdown · 96 lines

11 Essential functionality has been implemented only.

12

13 shared_ptr <connection> conn(new connection("host", "port", "default db", "auth_key"));

14

15 conn->use("default_db"); // change default db

key.h (https://github.com/chromium/chromium.git) C Header · 71 lines

3 // found in the LICENSE file.

4

5 #ifndef ASH_COMPONENTS_LOGIN_AUTH_KEY_H_

6 #define ASH_COMPONENTS_LOGIN_AUTH_KEY_H_

69 } // namespace chromeos

70

71 #endif // ASH_COMPONENTS_LOGIN_AUTH_KEY_H_

72

Customers.spec.js (https://github.com/stripe/stripe-node.git) JavaScript · 465 lines

4 const expect = require('chai').expect;

5

6 const TEST_AUTH_KEY = 'aGN0bIwXnHdw5645VABjPdSn8nWY7G11';

7

8 describe('Customers Resource', () => {

20

21 it('Sends the correct request [with specified auth]', () => {

22 stripe.customers.retrieve('cus_123', TEST_AUTH_KEY);

23 expect(stripe.LAST_REQUEST).to.deep.equal({

24 method: 'GET',

26 headers: {},

27 data: {},

28 auth: TEST_AUTH_KEY,

29 settings: {},

30 });

funcconnurl.properties (https://github.com/elukaweski/java-sdk.git) Properties File · 27 lines

25 #

26

27 url=force://${endpoint}?oauth_key=${force.test.oauth.key}&oauth_secret=${force.test.oauth.secret}

28

BaseAction.class.php (http://nblog-thinkphp.googlecode.com/svn/trunk/) PHP · 99 lines

20 public function _initialize() {

21

22 if (!$_SESSION[C('USER_AUTH_KEY')]) {

23 //???????

24 redirect(PHP_FILE.C('USER_AUTH_GATEWAY'));

76 //????????

77 protected function checkUser() {

78 if (!isset($_SESSION[C('USER_AUTH_KEY')])) {

79 $this->assign('jumpUrl',__APP__.'/Admin/login/');

80 $this->error(L('login_first'));

wp-config-sample.php (https://gitlab.com/mike_tm555/batiste) PHP · 88 lines

47 * @since 2.6.0

48 */

49 define('AUTH_KEY', 'впишите сюда уникальную фразу');

50 define('SECURE_AUTH_KEY', 'впишите сюда уникальную фразу');

ckl.h (https://github.com/ggreer/ckl.git) C Header · 105 lines

45 const char *endpoint;

46 const char *secret;

47 const char *oauth_key;

48 const char *oauth_secret;

49 const char *name;

lib_flickr_api_oauth.php (https://github.com/straup/parallel-flickr.git) PHP · 146 lines

18

19 $keys = array(

20 'oauth_key' => $GLOBALS['cfg']['flickr_oauth_key'],

21 'oauth_secret' => $GLOBALS['cfg']['flickr_oauth_secret'],

22 );

44

45 $keys = array(

46 'oauth_key' => $GLOBALS['cfg']['flickr_oauth_key'],

47 'oauth_secret' => $GLOBALS['cfg']['flickr_oauth_secret'],

48 'user_key' => $user_keys['oauth_token'],

61

62 $keys = array(

63 'oauth_key' => $GLOBALS['cfg']['flickr_oauth_key'],

64 'oauth_secret' => $GLOBALS['cfg']['flickr_oauth_secret'],

65 'user_key' => $user_keys['oauth_token'],

README.md (https://gitlab.com/teamo/dao-wordpress) Markdown · 70 lines

19 - `WORDPRESS_TABLE_PREFIX` 数据库表名前缀(默认为空,您可以从该变量覆盖 `wp-config.php` 中的配置)

20 - 安全相关(默认为随机的 SHA1 值)

21 + `WORDPRESS_AUTH_KEY`

22 + `WORDPRESS_SECURE_AUTH_KEY`

virtio-crypto.h (https://github.com/mstsirkin/qemu.git) C Header · 102 lines

55 uint32_t max_cipher_key_len;

56 /* Maximum length of authenticated key */

57 uint32_t max_auth_key_len;

58 /* Maximum size of each crypto request's content */

59 uint64_t max_size;

lib_flickr_api.php (https://github.com/straup/parallel-flickr.git) PHP · 217 lines

66 if ((0) && ($GLOBALS['cfg']['flickr_api_use_oauth_bridge'])){

67

68 $GLOBALS['cfg']['flickr_api_key'] = $GLOBALS['cfg']['flickr_oauth_key'];

69 $GLOBALS['cfg']['flickr_api_key'] = $GLOBALS['cfg']['flickr_oauth_secret'];

70

request.js (https://github.com/leppert/signature.git) JavaScript · 118 lines

23 this.auth_hash = {

24 auth_version: "1.0",

25 auth_key: token.key,

26 auth_timestamp: Math.floor(new Date().getTime()/1000)

27 }

49 authenticate: function(block, timestamp_grace){

50 timestamp_grace = timestamp_grace || 600;

51 var key = this.auth_hash['auth_key'];

52 if(!key) throw "Authentication key required";

53

Retrieve.php (https://gitlab.com/sutrix.hoa.tran/Research-Prestashop) PHP · 101 lines

31 define('DEBUG', true); // Debug mode

32 define('PS_SHOP_PATH', 'http://prestashop-research.local'); // Root path of your PrestaShop store

33 define('PS_WS_AUTH_KEY', 'L77TLJE2RPDE6UYP4648R873RVWE961D'); // Auth key (Get it in your Back Office)

34 require_once('./PSWebServiceLibrary.php');

35

37 try

38 {

39 $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);

40 // Here we set the option array for the Webservice : we want customers resources

41 $opt['resource'] = 'customers';

virtio_crypto_common.h (https://bitbucket.org/updatelee/v4l-updatelee.git) C Header · 128 lines

59 u32 max_cipher_key_len;

60 /* Maximum length of authenticated key */

61 u32 max_auth_key_len;

62 /* Maximum size of per request */

63 u64 max_size;

gitwatcher.py (https://bitbucket.org/mcreenan/crappy-irc-bot.git) Python · 138 lines

12 irc = None

13 plugin = None

14 auth_key = "secure"

15 announce_channel = "#liek"

16 httpd = None

18

19 def init(p, bot):

20 global irc, plugin, auth_key, announce_channel

21 irc = bot

22 plugin = p

26

27 try:

28 auth_key = irc.cfg.get('gitwatcher', 'auth_key')

29 except:

30 pass

AdminUser.php (https://github.com/fengahan/Yat.git) PHP · 211 lines

19 * @property string $password_reset_token

20 * @property string $email

21 * @property string $auth_key

22 * @property integer $status

23 * @property role $role

140 public function getAuthKey()

141 {

142 return $this->auth_key;

143 }

144

177 public function generateAuthKey()

178 {

179 $this->auth_key = Yii::$app->security->generateRandomString();

180 }

181

miq_ae_service_manageiq-providers-cloud_manager-provision_spec.rb (https://gitlab.com/aljesusg/manageiqtest) Ruby · 337 lines

257 context "with a key_pairs" do

258 before do

259 @ci = FactoryGirl.create("auth_key_pair_#{t}")

260 allow_any_instance_of(workflow_klass).to receive(:allowed_guest_access_key_pairs).and_return(@ci.id => @ci.name)

261 end

resource_aws_dx_transit_virtual_interface_test.go (https://github.com/terraform-providers/terraform-provider-aws.git) Go · 261 lines

59 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

60 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

61 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

62 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

63 resource.TestCheckResourceAttrSet(resourceName, "customer_address"),

80 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

81 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

82 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

83 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

84 resource.TestCheckResourceAttrSet(resourceName, "customer_address"),

131 resource.TestCheckResourceAttrSet(resourceName, "aws_device"),

132 resource.TestCheckResourceAttr(resourceName, "bgp_asn", strconv.Itoa(bgpAsn)),

133 resource.TestCheckResourceAttrSet(resourceName, "bgp_auth_key"),

134 resource.TestCheckResourceAttr(resourceName, "connection_id", connectionId),

135 resource.TestCheckResourceAttrSet(resourceName, "customer_address"),

iscsit_authclient.h (https://github.com/buffygb/illumos-gate.git) C Header · 160 lines

60 unsigned int len;

61 auth_value_t value;

62 } auth_key_t;

63

64 typedef struct iscsit_auth_key_block {

65 auth_key_t key[AUTH_KEY_TYPE_MAX];

66 } auth_key_block_t;

105 auth_large_binary_t auth_send_binary_block;

106

107 auth_key_block_t recvKeyBlock;

108 auth_key_block_t sendKeyBlock;

140

141 int

142 client_auth_key_present(auth_key_block_t *keyBlock,

143 int key_type);

144

ProjectController.php (https://gitlab.com/jafari/resana) PHP · 216 lines

70 {

71 $model = $this->findModel($id);

72 $model->scenario = Project::SCENARIO_GENERATE_AUTH_KEY;

73 if (Yii::$app->request->isAjax) {

74 return $this->renderAjax('auth-key', [

82

83 /**

84 * Add auth_key for project.

85 * @return mixed

86 */

88 {

89 $model = $this->findModel($id);

90 $model->scenario = Project::SCENARIO_GENERATE_AUTH_KEY;

91 if (Yii::$app->request->isAjax) {

92 Yii::$app->response->format = Response::FORMAT_JSON;

af_key.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 3845 lines ✨ Summary

This C code implements a part of the Linux kernel’s IPsec protocol, specifically for the PF_KEY socket family. It sets up and registers various components, including protocols, sockets, and networking subsystems, to enable secure communication over the internet. The code is used in conjunction with other IPsec modules to provide end-to-end encryption and authentication services.

775 int ctx_size = 0;

776 int size;

777 int auth_key_size = 0;

778 int encrypt_key_size = 0;

779 int sockaddr_size;

807 if (add_keys) {

808 if (x->aalg && x->aalg->alg_key_len) {

809 auth_key_size =

810 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8);

811 size += sizeof(struct sadb_key) + auth_key_size;

968

969 /* auth key */

970 if (add_keys && auth_key_size) {

971 key = (struct sadb_key *) skb_put(skb,

972 sizeof(struct sadb_key)+auth_key_size);